What is the difference between unordered_map and map of C++ STL. Please explain in terms of complexity and use.
I replace map with unordered_map and I got accepted while earlier i was getting Time limit Exceeded.
And where should we use map and where unordered map