Showing 3 of 6 questions
Find the maximum possible sum of a subsequence where you alternate between adding and subtracting elements. Maximize the sum by strategically choosing which elements to include and their order.
#1. Maximum Alternating Subsequence Sum
Imagine you're watering a garden using strategically placed taps. Find the fewest taps you need to open to water the entire garden, given each tap's watering range.
#2. Minimum Number of Taps to Open to Water a Garden
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.
#3. 3Sum
Page 1 of 1 · 6 total