Skip to content

Commit

Permalink
Merge branch 'main' of github.com:aucker/leetcode
Browse files Browse the repository at this point in the history
  • Loading branch information
aucker committed Aug 24, 2024
2 parents 2fa5203 + f061d07 commit bb572f7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ class Solution {
if (corridor[i] == 'S') {
chairs++;

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

0 comments on commit bb572f7

Please sign in to comment.