How to Pass a Google Coding Interview Question - JavaScript

preview_player
Показать описание
Solution to a very popular coding interview question asked recently by Google - Binary Search.

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

You gotta mention that nums is sorted otherwise this wouldn’t make sense to use binarysearch

Dirtymvm
Автор

Index Of and find Index are all O(N) time complexity. Binary search can do it in O(logN)

abdurrahman
Автор

Why not use the "array.indexOf(🤷🏻)" function

DevDeepan
Автор

There is a bug in your code on line 15, assuming you're using fixed-size machine integers

GekoPoiss
join shbcf.ru