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

remove duplicates from sorted array - two pointer approach (leetcode)

  class Solution {     public int removeDuplicates ( int [] nums ) {         // base case: return if array have no el.         if ( nums...