We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7dafa1 commit c78f7c2Copy full SHA for c78f7c2
C++/line-reflection.cpp
@@ -19,7 +19,7 @@ class Solution {
19
const auto mid = left + right;
20
for (const auto& kvp : groups_by_y) {
21
for (const auto& x : kvp.second) {
22
- if (x != mid - x && kvp.second.count(mid - x) == 0) {
+ if (kvp.second.count(mid - x) == 0) {
23
return false;
24
}
25
0 commit comments