Binary Search - LeetCode 704 - JavaScript

preview_player
Показать описание


Step by step walk through of the solution to the popular Apple coding interview question, Binary Search.

LeetCode 704

JavaScript

0:00 Intro
0:32 Explanation
3:09 Code

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

you can find midd point a little easy with: let midd = Math.floor((right + left) / 2);

valikonen
Автор

I dont understand why you add left to calculate mid. Solution works fine without it, unless I am missing something?

dragonborn