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 ...
user avatar
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 ...
user avatar
  • 17.8k
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 ...
user avatar
  • 20.8k
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 ...
user avatar
  • 4,673

Only top scored, non community-wiki answers of a minimum length are eligible