Gas Station Feasibility / Complete Circuit

Asked at Bloomberg · Coding Questions · Difficulty: Medium · Last asked Jan 31, 2026

You are given two arrays `gas` and `cost` of the same length:

Loading the problem…