Showing 3 of 6 questions
Find the differences between two objects. You need to identify keys that are present in one object but not the other, and the keys where the values differ.
#1. Differences Between Two Objects
You are given an array of fruits represented by characters. Find the longest subarray that contains at most two types of fruits.
#2. Fruit Into Baskets
Implement a hash map data structure from scratch. You need to handle basic operations like insertion, retrieval, and deletion of key-value pairs.
#3. Design HashMap
Page 1 of 1 · 6 total