companyhub
DashboardCompaniesProblemsSheetsBookmarksRevisionsAnalyticsLeaderboardCompare
Settings
Sign in
DashboardCompaniesProblemsSheetsBookmarks
Medium

Gas Station

48.0% acceptance · asked by 27 companies

Solve on LeetCode
ArrayGreedy

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

Scale AI100Cme Group100Bitgo100Chubb88Freecharge88Flipkart88Infosys75Mastercard75C3 AI75Dream1175Accolite75Adobe63Goldman Sachs63Servicenow63Phonepe63Zoho50Amazon50Bloomberg50Juspay50Microsoft50Oracle50Visa50Meta38Google38

Related problems

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