We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6d17b9 commit f094f85Copy full SHA for f094f85
src/main/java/com/fishercoder/solutions/_925.java
@@ -43,7 +43,7 @@ public boolean isLongPressedName(String name, String typed) {
43
for (int j = 0; i < name.length() && j < typed.length(); i++) {
44
if (name.charAt(i) != typed.charAt(j)) {
45
return false;
46
- } else if (i < name.length() - 1 && name.charAt(i) != name.charAt(i+1)) {
+ } else if (i < name.length() - 1 && name.charAt(i) != name.charAt(i + 1)) {
47
j++;
48
while (j < typed.length() && name.charAt(i) == typed.charAt(j)) {
49
0 commit comments