Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit35c1405

Browse files
authored
Update Solution.java
1 parentb2560be commit35c1405

File tree

1 file changed

+0
-2
lines changed
  • src/main/java/g2601_2700/s2672_number_of_adjacent_elements_with_the_same_color

1 file changed

+0
-2
lines changed

‎src/main/java/g2601_2700/s2672_number_of_adjacent_elements_with_the_same_color/Solution.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ public int[] colorTheArray(int n, int[][] q) {
1313
for (inti =0;i <q.length;i++) {
1414
intind =q[i][0];
1515
intassColor =q[i][1];
16-
1716
intleftColor =0;
1817
intrytColor =0;
19-
2018
if (ind -1 >=0) {
2119
leftColor =color[ind -1];
2220
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp