Binary Search algorithm in JavaScript

preview_player
Показать описание
In this video we'll learn what a binary search is, how to use it and code your own.

Рекомендации по теме
Комментарии
Автор

It just took me 7mins. to understand binary search algorithm. We don't need university professors but we need these type of brilliant coders. Thank you sir❤️

bhaskarjyotideka
Автор

you explained it so well! thank you ;D

Sam-czck
Автор

Dude, I only get 6 and mine is identical to yours. Hahaha!

arcosd
Автор

Loved this video it helped me understand Binary Search Algo! Did you stop? I thought this was going to be a series😭😭

SimPwear
Автор

Hey Leigh,
The binary search was literally becoming a nightmare for me. But, you explained it so beautifully and in simple words. Thank you, sir.

sagarsabat
Автор

This is the very first Binary Search videos I every watch. Not intimidating at all. Thanks for the simple walk though!

MrSxiong
Автор

That's weird, i got 6 not 7.... I got 0, 1, 2, 3, 4, 5, 6, 6 I got double six? :)

arcosd
Автор

Javascript beginner here. Why Do we add lower to upper-lower/2 ? Thanks in advance

repentantslacker
Автор

I'm sure this will be obvious once someone points it out, but how is the number 7 at index 7? If 0 is the first index why isn't the index of 7, 8? Great video!!

matekimagick
Автор

Hello, does the comparison works if we search through an array of strings values ?

tamantaman
Автор

Thank you so much Leigh, hoping to learn more algorithm from you!

julielai
Автор

Whoa man this is so ingenious and genius at the same time, guess it is time for me to start learning algorithms and data structures, thanks so much for the video, all of your content is top notch!

rofazayn
Автор

thank you for this, you explained it so well.

salmausama
Автор

How you find more than one data .... i think and idea

omarsamudio
Автор

Hey man! Love your videos. They are really helping me recently, as a junior dev.
Would love to see more of your google maps videos. I am trying to get familiar with the API, but the documentation is still kinda confusing to me.Specifically regarding using react-google-maps searchbox inside google maps.
Keep up the great work!

craftmoon-vas
Автор

Very clean explication, but the middle point can be like:
let middPoint = Math.floor((start + end) / 2);

valikonen
Автор

Is lower set to 0 because it's the first element in the array of your example (ie. you can set the variable lower to array[0] instead of hard coding it?) or because it's always the starting lowest value?

yukanagaikoko
Автор

find() method, better performance than binary search ..

mode
Автор

Hello, Thank you very much for your lesson.

samandarmasatov
Автор

Shouldn't we check if the value is lower or upper first?

quickindiarecipe
join shbcf.ru