mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-25 13:34:54 +08:00
Add automatic linter (#4214)
This commit is contained in:
@ -33,8 +33,7 @@ public class StringCompression {
|
||||
break;
|
||||
} else if (input.charAt(i) != input.charAt(i + 1)) {
|
||||
if ((i + 1) == input.length() - 1) {
|
||||
compressedString = appendCount(compressedString, count, input.charAt(i))
|
||||
+ input.charAt(i + 1);
|
||||
compressedString = appendCount(compressedString, count, input.charAt(i)) + input.charAt(i + 1);
|
||||
break;
|
||||
} else {
|
||||
compressedString = appendCount(compressedString, count, input.charAt(i));
|
||||
|
Reference in New Issue
Block a user