lp04 : Leetcode practice with priority queues and hashtables
| num | ready? | description | assigned | due |
|---|---|---|---|---|
| lp04 | true | Leetcode practice with priority queues and hashtables | Tue 05/06 09:00AM | Fri 05/30 11:59AM |
Additional Practice Problems
Note: Solve at least one problem related to priority queues and one related to hashtables/hashmaps. Submit a link to your leetcode submission to assignment lp04 on Gradescope by the due date..
Priority Queues:
- Kth Largest Element in an Array (medium): https://leetcode.com/problems/kth-largest-element-in-an-array/description/
- Top K Frequent Elements (medium): https://leetcode.com/problems/top-k-frequent-elements/description/
Hastable and hashmaps
- Two sum (easy):https://leetcode.com/problems/two-sum/description/
- Intersection of Two Arrays (easy) https://leetcode.com/problems/intersection-of-two-arrays/description/
- Contains Duplicate (easy) https://leetcode.com/problems/contains-duplicate/description/
- Ransom Note (easy) https://leetcode.com/problems/ransom-note/description/
- Happy Number (easy) https://leetcode.com/problems/happy-number/description/
- Longest Consecutive Sequence (medium) https://leetcode.com/problems/longest-consecutive-sequence/description/
Optional challenge (not included on exams):
- Kth Smallest Element in a Sorted Matrix (medium): https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/description/
- Task Scheduler (medium): https://leetcode.com/problems/task-scheduler/description/
- 4Sum II (medium) https://leetcode.com/problems/4sum-ii/description
- 3Sum (medium) https://leetcode.com/problems/3sum/description/
- 4Sum (medium) https://leetcode.com/problems/4sum/description/