Showing 3 of 17 questions
Implement a snapshot array where you can update elements and take snapshots of the array at any time. Later, you should be able to retrieve the value of an element at a specific snapshot.
#1. Snapshot Array
You're given a list of jobs with start times, end times, and profits. Find the maximum profit you can obtain by scheduling a subset of jobs that don't overlap.
#2. Maximum Profit in Job Scheduling
Find the overlapping intervals between two lists of intervals. Return a new list containing only the intersecting intervals.
#3. Interval List Intersections