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

Commit82849e9

Browse files
authored
Add spaces
1 parent2c51b1a commit82849e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎csharp/0374-guess-number-higher-or-lower.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ public int GuessNumber(int n)
44
{
55
intleft=0,right=n-1;
66

7-
while(left<=right)
7+
while(left<=right)
88
{
99
intmid=left+((right-left)>>1);
1010
intresult_guess=guess(mid);
11-
if(result_guess==1)
11+
if(result_guess==1)
1212
{
1313
left=mid+1;
1414
}
15-
elseif(result_guess==-1)
15+
elseif(result_guess==-1)
1616
{
1717
right=mid-1;
1818
}
@@ -24,4 +24,4 @@ public int GuessNumber(int n)
2424

2525
returnleft;
2626
}
27-
}
27+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp