Harish Kayarohanam: I was reading the solution here (https://leetcode.com/problems/longest-substring-without-repeating-characters/solution/).They say that in normal cases when we have no ide… Read More
What is collisions in HashMap ?As we know the internal array of HashMap is of fixed size, and if you keep storing objects in hashMap, at some point of time hash function will return same buc… Read More
In the last article, I have shown how to remove key/value pairs from a map in Java based upon some conditions e.g. remove all entries where values are greater than 10$. I have told you that… Read More
In recent days Collections is becoming a very common area of core java to be asked in interviews. When it comes to Collections in Java Map interface and its implementations like HashMap or T… Read More