What Is the difference between map and unordered map in terms of time complexities
Map vs unordered map
map is sorted and it takes logn time insertion
unordered map take O(1) time for insertion and it is unsorted
What Is the difference between map and unordered map in terms of time complexities
map is sorted and it takes logn time insertion
unordered map take O(1) time for insertion and it is unsorted