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 05efcb2 commit a697b0cCopy full SHA for a697b0c
src/main/kotlin/g3201_3300/s3208_alternating_groups_ii/Solution.kt
@@ -27,9 +27,6 @@ class Solution {
27
len = 0
28
}
29
if (colors[0] != colors[colors.size - 1]) {
30
- // if(len == colors.length) {
31
- // return Math.max(0, colors.length);
32
- // }
33
len = if (len == 0) 2 else len + 1
34
var j = 1
35
while (j < colors.size && colors[j] != colors[j - 1]) {
0 commit comments