How to Code Binary Search (Javascript) | Coding Problems

preview_player
Показать описание
This video shows you how to code a binary search algorithm, using Javascript.

Binary search is one of the common searching algorithms you're going to find when you're programming or developing, and it's not too tough to understand!

Remember: it HAS to be performed on a SORTED array!!

Anyways, this tutorial uses a recursive approach to binary search, but there's also an iterative version (not covered here).

Here are some timestamps for you:

1. What is binary search? (0:52)

2. Coding binary search (3:51)

----

Рекомендации по теме