We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ee0fda commit 3c2752fCopy full SHA for 3c2752f
src/LongPressed.java
@@ -25,7 +25,7 @@ public boolean isLongPressedName(String name, String typed) {
25
if (i < name.length() && name.charAt(i) == typed.charAt(j)) { i++; }
26
else if (i > 0 && typed.charAt(j) != name.charAt(i - 1)) { return false; }
27
}
28
- return (i == name.length()) ? true : false;
+ return i == name.length();
29
30
31
public static void main(String[] args) {
0 commit comments