GAS STATION | LEETCODE # 134 | PYTHON | AMAZON & MICROSOFT INTERVIEW QUESTION

Поділитися
Вставка

КОМЕНТАРІ • 3

  • @LeeK301
    @LeeK301 5 місяців тому +1

    The intuition behind this is brilliant. You are truly inspiring sir; well done!

    • @crackfaang
      @crackfaang  5 місяців тому +1

      Thanks for the kind words, glad you enjoyed the video!

  • @kedarkulkarni9464
    @kedarkulkarni9464 Місяць тому

    I think a good way to explain about why we need total_gas is that total_gas is always going to stay the same, regardless of what the starting point is. So we calculate that in ALL cases.