Showing 3 of 4 questions
Maximize your profit by buying and selling a stock multiple times. You're given an array representing stock prices, and can make as many transactions as you want.
#1. Best Time to Buy and Sell Stock II
Find the longest sequence of consecutive 1s in a binary array. Return the maximum number of consecutive 1s.
#2. Max Consecutive Ones
Determine if a car, with a limited capacity, can complete a series of passenger pick-up and drop-off requests without exceeding its capacity at any point. You're given the number of passengers for each trip, the start location, and the end location.
#3. Car Pooling
Page 1 of 1 · 4 total