Skip to content

Commit a9ff3e9

Browse files
authored
Update minimum-incompatibility.cpp
1 parent ea5ee03 commit a9ff3e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/minimum-incompatibility.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class Solution_Wrong_Greedy_Map {
183183
freq_to_nodes.erase(size(stks) - curr);
184184
}
185185
// greedily fill the contiguous ordered elements into the first vacant subset until it is full,
186-
// otherwise, the result sum would get larger
186+
// otherwise, the result sum would get larger => in fact, this is wrong
187187
vector<int> to_delete;
188188
for (auto& [x, cnt] : count) {
189189
stks[curr].emplace_back(x);
@@ -255,7 +255,7 @@ class Solution_Wrong_Greedy {
255255
cnt = 0;
256256
}
257257
// greedily fill the contiguous ordered elements into the first vacant subset until it is full,
258-
// otherwise, the result sum would get larger
258+
// otherwise, the result sum would get larger => in fact, this is wrong
259259
for (auto& [x, cnt] : count) {
260260
if (!cnt) {
261261
continue;

0 commit comments

Comments
 (0)