New answers tagged collections
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 ...
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.
Top 50 recent answers are included
Related Tags
collections × 342java × 103
c++ × 88
c# × 80
performance × 40
array × 30
c++11 × 23
hash-map × 22
generics × 18
iterator × 17
object-oriented × 15
vba × 15
.net × 15
python × 14
algorithm × 13
reinventing-the-wheel × 13
sorting × 11
vectors × 11
beginner × 10
linked-list × 10
c++14 × 10
c++17 × 9
template × 9
php × 8
c × 8