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:

  1. Kth Largest Element in an Array (medium): https://leetcode.com/problems/kth-largest-element-in-an-array/description/
  2. Top K Frequent Elements (medium): https://leetcode.com/problems/top-k-frequent-elements/description/

Hastable and hashmaps

  1. Two sum (easy):https://leetcode.com/problems/two-sum/description/
  2. Intersection of Two Arrays (easy) https://leetcode.com/problems/intersection-of-two-arrays/description/
  3. Contains Duplicate (easy) https://leetcode.com/problems/contains-duplicate/description/
  4. Ransom Note (easy) https://leetcode.com/problems/ransom-note/description/
  5. Happy Number (easy) https://leetcode.com/problems/happy-number/description/
  6. Longest Consecutive Sequence (medium) https://leetcode.com/problems/longest-consecutive-sequence/description/

Optional challenge (not included on exams):

  1. Kth Smallest Element in a Sorted Matrix (medium): https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/description/
  2. Task Scheduler (medium): https://leetcode.com/problems/task-scheduler/description/
  3. 4Sum II (medium) https://leetcode.com/problems/4sum-ii/description
  4. 3Sum (medium) https://leetcode.com/problems/3sum/description/
  5. 4Sum (medium) https://leetcode.com/problems/4sum/description/