File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ class Solution_Wrong_Greedy_Map {
183
183
freq_to_nodes.erase (size (stks) - curr);
184
184
}
185
185
// 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
187
187
vector<int > to_delete;
188
188
for (auto & [x, cnt] : count) {
189
189
stks[curr].emplace_back (x);
@@ -255,7 +255,7 @@ class Solution_Wrong_Greedy {
255
255
cnt = 0 ;
256
256
}
257
257
// 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
259
259
for (auto & [x, cnt] : count) {
260
260
if (!cnt) {
261
261
continue ;
You can’t perform that action at this time.
0 commit comments