New answers tagged

1 vote
Accepted

std::list implementation learning exercise

There’s no point in a design review, because this class is simply a remake of std::list, so I’ll just dive right into the code review. You don’t specify which ...
user avatar
  • 8,106
2 votes

Implemented Sorting of Map by Value and then by Key in java

You'd help yourself hugely by picking the right data structure. A TreeMap is sorted by key so you could simply iterate over the entries saving the first one which exceeds the current maximum.
user avatar
  • 1,192

Top 50 recent answers are included