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

Commit 7b25634

Browse files
Refactor position increment logic in loop
Refactor code to improve readability and maintainability.
1 parent 55cf5f0 commit 7b25634

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎A_Colorful_Stones__Simplified_Edition.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ int main()
99
for (char c : t)
1010
{
1111
if (s[pos - 1] == c)
12-
{
13-
pos++;
12+
{// ==>
13+
pos++;// ==>
1414
// ==>
1515
} // ==>
1616
} // ==>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /