Skip to content

Commit 3e7e84a

Browse files
authored
Update count-houses-in-a-circular-street.cpp
1 parent 446a86a commit 3e7e84a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

C++/count-houses-in-a-circular-street.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ class Solution {
66
public:
77
int houseCount(Street* street, int k) {
88
for (int _ = 0; _ < k; ++_) {
9-
if (street->isDoorOpen()) {
10-
street->closeDoor();
11-
}
9+
street->closeDoor();
1210
street->moveRight();
1311
}
1412
int result = 0;

0 commit comments

Comments
 (0)