Skip to content

Commit aecb8eb

Browse files
authored
Update perfect-rectangle.cpp
1 parent cd2aaee commit aecb8eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

C++/perfect-rectangle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Solution {
2929
}
3030
}
3131

32-
bool is_valid[16] = {false};
32+
bitset<16> is_valid;
3333
is_valid[LB | RB] = is_valid[LB | LT] = is_valid[RB | RT] = is_valid[LT | RT] = is_valid[LB | RB | LT | RT] = true;
3434
for (auto itx = corner_count.cbegin(); itx != corner_count.cend(); ++itx) {
3535
const auto x = itx->first;

0 commit comments

Comments
 (0)