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

Commit402a44d

Browse files
fishercoder1534zhahui
authored andcommitted
refactor 35
1 parentbc2c564 commit402a44d

File tree

1 file changed

+8
-6
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+8
-6
lines changed

‎src/main/java/com/fishercoder/solutions/_35.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@
1818

1919
publicclass_35 {
2020

21-
publicintsearchInsert(int[]nums,inttarget) {
22-
intlen =nums.length;
23-
for (inti =0;i <len;i++) {
24-
if (target <=nums[i]) {
25-
returni;
21+
publicstaticclassSolution1 {
22+
publicintsearchInsert(int[]nums,inttarget) {
23+
intlen =nums.length;
24+
for (inti =0;i <len;i++) {
25+
if (target <=nums[i]) {
26+
returni;
27+
}
2628
}
29+
returnlen;
2730
}
28-
returnlen;
2931
}
3032

3133
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp