Your friend is typing his name into a keyboard. Sometimes, when typing a character c, the key might get long pressed, and the character will be typed 1 or more times. You examine the typed characters of the keyboard. Return True if it is possible t…
public class Solution { public bool IsLongPressedName(string name, string typed) { var list1 = new List<KeyValuePair<char, int>>(); var list2 = new List<KeyValuePair<char, int>>(); int name_len = name.Length; int typed_len = typed.…