Algorithms: Binary Search

preview_player
Показать описание
Learn the basics of binary search algorithm. This video is a part of HackerRank's Cracking The Coding Interview Tutorial with Gayle Laakmann McDowell.
Рекомендации по теме
Комментарии
Автор

love having a test tomorrow​ on something you know nothing about

yvesbff
Автор

That keyboard click is very satisfying

BigJDawg
Автор

Thanks for this Gayle. Great theoretical overview with an example to illustrate the point, followed by the hands on coding implementation. Truly great stuff.

charlesikemefuna
Автор

This is such a wonderful explanation on this topic, i've been struggling with this for a while

centurion
Автор

Great video, made a confusing two hour lecture make sense in 6 and a half minutes.

TheMrkazsam
Автор

These videos are so nice. They're concise and clear in their explanations. Thanks for the videos Gayle Laakmann McDowell and HackerRank!

traviswentz
Автор

This is such a simple implementation. Other places have an overcomplicated solution lol.

alexcomas
Автор

Thanks! The presentation is really nice, easy to understand and very clear!

wenjieyu
Автор

I only watched through the basic explanation, because I forgot how binary search worked in principle. Really nice way of explaining and I also like how you explained the meaning of the log(n)

zauberfrosch
Автор

Great explanation and examples for recursive and iterative approach!

HugoAyala
Автор

For anyone wondering why we need to add the first number to the last number, after all it doesn't make sense when our first element is 0 or 1, we do that becuase it's necessary when we go deeper through the array. If you are at the 6th element, for example, and the 9th element is your last element, adding them together is necessary to get the middle element.

memo
Автор

That’s the best description of binary search I’ve ever heard

cinquain
Автор

i love how you made it look so freaking easy.

saniyakhan
Автор

I read her answers on quora for so long, but I didn't even know she was so famous

ayushsingh
Автор

Great video! Thank you so much. I finally understand.

JamesBrodski
Автор

Great video, made that very easy to understand !

PrincessSarahjayne
Автор

A key thing to know about binary search is that is not strictly limited to sorted arrays. It's just a method for efficiently narrowing a search range (in log(n) steps) in order to find a value that meets a criteria. You can use binary search to find the median in an unsorted array, for instance.

MichaelCarolin
Автор

Thanks so much.... It's simple and sweet when explained this brilliantly.

LokeshBarla
Автор

Wow, such am amazing explanation Gayle

richashalini
Автор

Liked the way you handled the overflow. :)

jonsnow