unordered_map ------------- offers average O(1) time for insert, find, and erase,
1. Worst-Case Complexity is O(n)
============================= Hash collisions can degrade performance from O(1) to O(n), especially with poor key distribution.
Why unordered_map Can Cause TLE in C++
unordered_map ------------- offers average O(1) time for insert, find, and erase,
============================= Hash collisions can degrade performance from O(1) to O(n), especially with poor key distribution.