lp04 : Leetcode practice with priority queues and hashtables

num ready? description assigned due
lp04 true Leetcode practice with priority queues and hashtables Mon 02/16 09:00AM Fri 02/27 11:59PM

Additional Practice Problems

Topics covered: Weeks 6-7 (Priority queues, binary heaps, hashtables, hashmaps)

Complete at least 2 problems from this set (at least one priority queue problem and one hashtable problem). Submit via 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/