Skip to content

Commit 6baffee

Browse files
authored
Update check-if-array-pairs-are-divisible-by-k.cpp
1 parent 79ccd38 commit 6baffee

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

C++/check-if-array-pairs-are-divisible-by-k.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
class Solution {
55
public:
66
bool canArrange(vector<int>& arr, int k) {
7-
if (arr.size() % 2) {
8-
return false;
9-
}
107
unordered_map<int, int> count;
118
for (const auto& i : arr) {
129
++count[(i % k + k) % k];

0 commit comments

Comments
 (0)