Binary Search | Leet code 704 | Theory explained + Python code

preview_player
Показать описание
This video is a solution to Leet code 704, Binary Search. I explain the question, go over the logic / theory behind solving the question and finally solve it using Python code.

Comment below if you have a better solution to this problem!

Let me know if you have any feedback and don't forget to subscribe for more videos!

Code:

More leetcode questions solved:

Timestamps:
0:00 Question
0:25 Solution Explained
7:04 Python code

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

Btw congrats ! You completed 100 vids in the playlist!

pythonenthusiast
Автор

Thank you!, I like your explaination!

mariagu
Автор

This is exactly what I was looking for. These leetcode explanations are really helpful.Glad to have found your playlist :)

muskankaushik
Автор

Please make a video on flatten a binary tree to linked list

pythonenthusiast
Автор

Made simple problem very Hard 😉
Mid =l+r//2
Anyway good explanation
Better than nothing

yagnasivasai
Автор

Isn't mid = l + (r - l) // 2 is the same as mid = (r + l) // 2. I've always solved binary search that way, including this one.

sorrowseal
visit shbcf.ru