Binary Search - Iterative Implementation and common errors

preview_player
Показать описание
See complete series on binary search here
In this lesson, we will implement a binary search in C/C++. We will also discuss some of common errors that happen in Binary search implementation.
Tutorial Level: Intermediate
Pre-requisites: Knowledge of arrays, loops, basic c/c++ programming syntax
Рекомендации по теме
Комментарии
Автор

this channel is gold for data structures learners

Supercool
Автор

Thanks for the videos.  I appreciate your time and knowledge....

michaelwood
Автор

logic at 8:58 how thorough he is with the algorithm...ONLY HE EXPLAINED WHY WE DO THIS

jigarkapadiya
Автор

Best video ever could be on Binary Search !!!! Thanks a lot :)

russel_dev
Автор

really nice... I´m kinda angry, because your alhorythm works really nicely, and contains less than 10 lines . My conained over fifty and still didn´t work :D ... But now it does. Truth is that sometimes you need to return not only one index, but a list of it, for there can be more than one possition with the given value. Keep up please, your vids are really educative and entertaining :)

MrKaprson
Автор

Nice explanation, after watching this video I have the full idea of binary search, thank you so much

moturulaxman
Автор

One of the best channel.and sir the way you teach is just awesome

sourav
Автор

Excellent Explanation sir thanks a lot...

krishanudutta
Автор

very nice, keep it up, hope you can touch on circular buffer

Kashif_Javaid
Автор

Great tutorial... Thanks and hope more videos .... related

narayankhatri
Автор

What I want to return multiple results that have the same variable? In iterative binary search

neverforget
Автор

After watching the video I realized that you don't need to put {} in if statement with one execution

crazy
Автор

i tried to compile online but it shows

$gcc -o main *.c
$main
Enter a number
the number 0 is not present in the array

bcaignou
Автор

Will this work when 2 duplicate elements are stored in an array?

TheHarsh
Автор

Can I have the java file? I'm just a student.

dominicanotacools
Автор

couldn't we just do (low/2+high/2) instead of low + (high-low)/2 ?

tanaynarshana
Автор

Dude what's your name, i know codeschool, would like to know the dude behind this screen

Alohamora