6
votes
Accepted
Fastest function to `Remove Duplicate Lines` per each cell
Binding
Late-binding is slower than early-binding. Add a reference to Microsoft Scripting Runtime:
then change Dim dictionary As Object to ...
4
votes
Codeforces #806 Problem D: Double Strings
You are failing with the datastructures.
What you need is:
A string to mark your answers.
Start with all no.
A std::vector to collect your strings.
A way to ...
2
votes
My LRU Cache implementation in Java
If you are looking for micro-optimizations to get the time down, consider
keyToNodeMap = new HashMap<>();
could be
...
2
votes
My LRU Cache implementation in Java
Don't write, never publish/commit undocumented/uncommented code.
For Java, there's javadoc.
(A pity
• LRUCache is specified to be a class - I'd rather have an ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
hash-map × 870python × 287
java × 168
performance × 128
c# × 118
c++ × 102
python-3.x × 70
c × 64
algorithm × 57
beginner × 49
strings × 44
array × 43
programming-challenge × 35
javascript × 32
python-2.x × 26
linked-list × 26
reinventing-the-wheel × 25
ruby × 24
sorting × 22
collections × 22
object-oriented × 20
vba × 16
comparative-review × 16
set × 15
parsing × 14