Binary Search - Iterative Method (Algorithm explained with example)

preview_player
Показать описание
In this video, you’ll learn what is binary search along with its implementation and common errors that people make while implementing a binary search algorithm.

----------------------------------------------------------------------------------------------------

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

May I know the Instructor name?Well presented with interaction.

sahanasshenoy
Автор

mid = (high + low) / 2 is a simpler calculation that gives the same answer with fewer CPU cycles. (It's just an add and a right shift.)

elhoward
Автор

Why we take the mid formula as mid= (low)+(high-low)/2 . why not mid=(low+high)/2

niteshrathore