docs(docs): add wrapper badge component, make backlinks collapsible, and include solution code for Gas Station problem

This commit is contained in:
Prad Nukala committed 2026-09-29 17:03:28 -04:00
1 parent 2f94b02e15
commit d2c645bef8
4 files changed
+49 -20

No files matched your search

@@ -32,4 +32,16 @@ sidebar:
```py
class Solution:
def canCompleteCircuit(self, gas: list[int], cost: list[int]) -> int:
start, tank, total = 0, 0, 0
for i in range(len(gas)):
drive = gas[i] - cost[i]
tank = tank + drive
if tank < 0:
tank = 0
start = i + 1
total = total + drive
return start if total >= 0 else -1
```