-
Balanced Binary Search Tree (Java TreeMap/TreeSet)
- Difference between a map and a set.
- Creating TreeMaps and TreeSets.
- Important functions and their complexity:
add, remove, contains, getValue
- Creating a comparator for an object to be the key in a TreeMap/Set.
- Traversing a TreeMap, TreeSet.
-
Heap (Java PriorityQueue)
- Creating PriorityQueues.
- Important functions and their complexities:
add, poll, peek
3.Defining a comparator.
-
Hash Table (Java HashMap/HashSet)
- Creating Hash/TreeMaps , Hash/TreeSets.
- Important functions and their complexities.
- HashMap/Set vs TreeMap/Set.
- Creating Hash functions and avoiding collisions.
Resource | Points Covered |
---|---|
CP section: 2.3 | Most of the outline points |
HE Heaps and Priority Queues | 2 |
HE Hashing basics | 3-iv |
HE Heaps and Priority Queues | 2 |
Problem | Tags | Notes | Solution |
---|---|---|---|
Andy's First Dictionary | Hash/Treeset | some input parsing , sort output | Link |
Add All | Priority Queues | better to add the smallest numbers first | Link |
Updating a Dictionary | TreeMap | _ | Link |
Pangram | Hash/TreeSet | can be solved with a boolean array | Link |
Argus | Priority Queue | - | Link |
Problem | Tags | Notes | Solution |
---|---|---|---|
Hay Points | TreeMap | _ | Link |
I Can Guess the Data Structure | Queues,Stacks,Priority Queues | simulate the operation using the required datastructres | Link |
CD | Hash/TreeSet | _ | Link |
Andy's Second Dictionary | TreeSet | _ | Link |
Conformity | TreeMap | _ | Link |