#map
Read more stories on Hashnode
Articles with this tag
Longest Substring with At Least K Repeating Characters using unordered map and window sliding Technique (O(n)TC(if collisions are neglected) & O(n)SC) ·...
Two sum using Brute Force O(n^2)TC O(1)SC , using sorting and two pointer approach O(nlogn)TC O(1)SC, using unordered map O(n)TC&O(n)SC · // Brute force...
Majority of Element (Freq of each > floor(nums.size()/3)) using unordered map (O(n)TC O(n)SC) and using Moore's voting Algorithm (O(n)TC O(1)SC) · class...