Priyanka·Oct 30Why I Got TLE Using ArrayList and Why HashSet Is Better for Fast Lookup in JavaWhile solving LeetCode 217 — Contains Duplicate, I initially tried solving the problem using multiple approaches. My first approach was…
Parikshitabhoge·Aug 13I was solving LeetCode blindly — until HashMaps changed everything!When I first started solving LeetCode problems, I had a habit that I didn’t realize was a problem.
Vinotech·Jul 19HashSet Internal Working in JavaHashSet internal processA response icon1A response icon1
Manohari Jayachandran·Jun 28C# Generics and Collections: The Interview Topic That Comes Up Every Single TimeOf all the C# topics that come up in technical interviews, generics and collections show up the most consistently — across junior, mid, and…
PRASIT·Jun 18Data Structure Explained: A Practical Guide to the Most Important TypesThink of a data structure as the tool your code uses to keep track of information — storing, finding, updating, and searching through it…
Rucha Sinkar·May 31Longest Consecutive Sequence — Why sorting is a trapAssume an array [100, 4, 200, 3, 1, 2]
Sandeep Kulkarni·Apr 4💥 Java HashSet Trap: Overriding equals() Without hashCode()This is one of those subtle Java bugs that looks correct… but behaves unexpectedly.
Tsvetomir Denchev·Jan 31How a HashSet works in Java?Now that I’ve clarified HashMap ‘s implementation, the logical continuation on the subject of data structures and collections in Java is…
Manthan Kathrotiya·Jan 31What’s Hash Maps and Sets?Hey learners, here we’re going to cover 2nd concept called hash maps and sets, which is quite easy to learn. It replaces many time…