LeetCode Problem 69: Sqrt(x)

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024
  • I felt like a dummy doing this one! Looking at other answers I feel very silly with my final solution, but due to that, I definitely learned something!

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

  • @riyadqahramanli5051
    @riyadqahramanli5051 26 дней назад

    binary search is also possible, that would be one of the fastest solutions for this problem, as its time complexity is o(log(n))