Algorithms Archive
In this article, we will discuss how to create a Data Structure with Insert, Delete and GetMostFrequent operations of O(1). This Data Structure will proform Insert, delete, and get the most frequent item in the …
In this article, we will discuss how to design and implement a Least Frequently Used (LFU) cache in Java to get fast fetching and updating items. This LFU cache discards the least frequently used items …
In this article, we will discuss how to design and implement an LRU cache algorithm in Java to get fast fetching and updating items. This Least Recently Used (LRU) discards the least recently used items …
This is another very frequently asked Java Developer Interview Questions of Internal Working of TreeMap in Java. How TreeMap works and what is an internal implementation of TreeMap. In our previous articles, we have already …
In the previous article, we have discussed internal working about the HashMap and here we will discuss the internal working of LinkedHashMap in Java. As we know that, a lot of interviewers ask internal working …
In this article, we will discuss the Internal Working of HashMap in Java and how hashmap’s get and put method works internally. As we know that HashMap is a key and value collection in java. …
In this article, we will discuss an algorithm on how to find and break loop in a linked list. So, in a given linked list, check whether it contains the loop in it, if yes …