From f061d07798141ab5008e8243872a5de01b092a8b Mon Sep 17 00:00:00 2001 From: Clang Robot Date: Thu, 22 Aug 2024 01:07:01 +0000 Subject: [PATCH] Committing clang-format changes --- daily/cpp/Nov-28-Number-of-ways-to-divide-a-long-corridor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daily/cpp/Nov-28-Number-of-ways-to-divide-a-long-corridor.cpp b/daily/cpp/Nov-28-Number-of-ways-to-divide-a-long-corridor.cpp index 290ca29..92f16b5 100644 --- a/daily/cpp/Nov-28-Number-of-ways-to-divide-a-long-corridor.cpp +++ b/daily/cpp/Nov-28-Number-of-ways-to-divide-a-long-corridor.cpp @@ -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.