POW(X, N) (Leetcode) - Code & Whiteboard

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 4

  • @akintayosalu5882
    @akintayosalu5882 2 роки тому

    You the goat bro. Wish you made more vids. Super helpful.

    • @babybear-hq9yd
      @babybear-hq9yd  2 роки тому

      thanks bro! might get back to it one day, we'll see :)

  • @darioarielgonzalezleegstra1741
    @darioarielgonzalezleegstra1741 3 роки тому

    Thanks for the video :) Pretty clear. I guess that it could turn to O(1) space if its done iteratively

    • @babybear-hq9yd
      @babybear-hq9yd  3 роки тому

      pleasure:) you definitely could; though I think the tradeoff would be in time-complexity. Is it possible to run it in O(logN) time with O(1) space??