Skip to content

Commit c78f7c2

Browse files
authored
Update line-reflection.cpp
1 parent d7dafa1 commit c78f7c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/line-reflection.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Solution {
1919
const auto mid = left + right;
2020
for (const auto& kvp : groups_by_y) {
2121
for (const auto& x : kvp.second) {
22-
if (x != mid - x && kvp.second.count(mid - x) == 0) {
22+
if (kvp.second.count(mid - x) == 0) {
2323
return false;
2424
}
2525
}

0 commit comments

Comments
 (0)