Pages

Tuesday, November 11, 2025

Hash Map in Java!

 HashMap: Part of JCF & implements the Map interface.

- Stores element in key-value pairs.
- Keys are unique and values can be duplicated.

No comments:

Post a Comment

3Sum - Leetcode solution - How i turned into two-pointer approach?

  class Solution {     public List < List < Integer >> threeSum ( int [] nums ) {         Arrays . sort (nums); // first sort...