How To Solve Binary Search (LeetCode 704) in Javascript

preview_player
Показать описание
How to solve Binary Search on LeetCode?

Problem: 704. Binary Search
Language: javascript
Difficulty: Easy

Time Complexity: O(log(n))
Space Complexity: O(1)

Let's Connect 💯:
════════════════════════════
Рекомендации по теме
Комментарии
Автор

Does creating that potentialMatch variable affect space complexity? I'm just asking because I'm really new to all of this.

codingismyreligion
join shbcf.ru