Showing 3 of 4 questions
Find all unique triplets in an array that sum to zero. You'll need to consider the potential for duplicate numbers and avoid duplicate triplets in your solution.
#1. 3Sum
You're given a list of courses with deadlines and durations. Determine the maximum number of courses you can complete by strategically scheduling them, respecting the deadlines.
#2. Course Schedule III
The problem asks you to find the number of arrays consisting of the integers 1 to n that have exactly k inverse pairs. An inverse pair is defined as a pair of numbers where a[i] > a[j] and i < j.
#3. K Inverse Pairs Array
Page 1 of 1 · 4 total