Skip to content

Commit bb572f7

Browse files
committed
Merge branch 'main' of github.com:aucker/leetcode
2 parents 2fa5203 + f061d07 commit bb572f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

daily/cpp/Nov-28-Number-of-ways-to-divide-a-long-corridor.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ class Solution {
1111
if (corridor[i] == 'S') {
1212
chairs++;
1313

14-
while (++i < corridor.size() && corridor[i] != 'S');
14+
while (++i < corridor.size() && corridor[i] != 'S')
15+
;
1516
// the while increment i and check each character in the corridor
1617
// string. the loop continues until the end of the string or until the
1718
// next chair.

0 commit comments

Comments
 (0)