Long Pressed Name

easy
1. You will be a name, as string 2. You will also be given the way your friend typed their name, sometimes while typing they press a key for too long 3. You need to check if the typed name can be your friend's name 3. Input and output is handled for you 4. It is a functional problem ,please do not modify main()

Input Format

Input is handled for you.

Output Format

Output handled

Constraints

name.length <= 1000
 typed.length <= 1000
 The characters of name and typed are lowercase letters

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
sumeet
suuummeet
Output
true
Previous
Longest Repeating Character Replacement
Next
Magic Squares In Grid

Related Questions