Path Sum - LeetCode 112 - JavaScript

Поделиться
HTML-код
  • Опубликовано: 19 ноя 2024

Комментарии • 2

  • @dHnd2j1u
    @dHnd2j1u Год назад

    loving this series. here you could just decrease from target sum and check if equal to zero to avoid having to make and call an inner function.

    • @AlgoJS
      @AlgoJS  Год назад

      Subtracting from target sum is definitely a good alternative approach