Skip to content

Commit cd2aaee

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

C++/perfect-rectangle.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
class Solution {
55
public:
66
bool isRectangleCover(vector<vector<int>>& rectangles) {
7-
enum DIR {L = 0, B = 1, R = 2, T = 3};
7+
enum Location {L = 0, B = 1, R = 2, T = 3};
88
int left = numeric_limits<int>::max(), bottom = numeric_limits<int>::max(),
99
right = numeric_limits<int>::min(), top = numeric_limits<int>::min();
1010
for (const auto& rect : rectangles) {
@@ -15,7 +15,7 @@ class Solution {
1515
}
1616

1717
using P = pair<pair<int, int>, int>;
18-
enum CORNER {LB = 1, RB = 2, LT = 4, RT = 8};
18+
enum Corner {LB = 1, RB = 2, LT = 4, RT = 8};
1919
unordered_map<int, unordered_map<int, int>> corner_count;
2020
vector<P> corners{{{L, B}, LB}, {{R, B}, RB}, {{L, T}, LT}, {{R, T}, RT}};
2121
for (const auto& rect : rectangles) {

0 commit comments

Comments
 (0)