companyhub
DashboardCompaniesProblemsSheetsBookmarksRevisionsAnalyticsLeaderboardCompare
Settings
Sign in
DashboardCompaniesProblemsSheetsBookmarks
Medium

Container With Most Water

asked by 57 companies

Solve on LeetCode
ArrayTwo PointersGreedy

Workspace

Scratch, run, iterate — then submit on LeetCode

Custom input (stdin)

Console

Output appears here. Runs on the free Piston sandbox.

Your notes

Sign in to keep markdown notes on this problem — approach, complexity, gotchas.

Who asks this

Flipkart100Tableau100Pubmatic100Coveo100Careem88Airtel88Wix88Sap88Groww88Workday88C3 AI88Myntra88Pornhub88Freshworks88Dream1175Deloitte75Bloomberg75Mastercard75Intel75Microsoft75Servicenow75Huawei75Amazon75Paytm75

Related problems

Two Sum
Easy
Merge Intervals
Medium
Best Time to Buy and Sell Stock
Easy
Group Anagrams
Medium
Number of Islands
Medium