Showing 3 of 8 questions
You are given a square matrix representing an image. Rotate the image by 90 degrees clockwise in-place.
#1. Rotate Image
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.
#2. 3Sum
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.
#3. Best Time to Buy and Sell Stock II
Page 1 of 1 · 8 total