Long Pressed Name
Input:
name =
"alex"
, typed =
"aaleex"
Output:
true
Explanation:
'a' and 'e' in 'alex' were long pressed.Input:
name =
"saeed"
, typed =
"ssaaedd"
Output:
false
Explanation:
'e' must have been pressed twice, but it wasn't in the typed output.Last updated