Microsoft Coding Interview Question - Single Element in Sorted Array (LeetCode)

Опубликовано: 22 Январь 2020
на канале: AlgosWithMichael
24,918
409

Here is a step by step tutorial explaining a popular software engineering technical interview question asked at both Microsoft and Facebook!

Check out my interview prep platform for learning the patterns!
📢 Interview Prep Platform: https://algoswithmichael.com

🎧 Join the community Discord:   / discord  
💰 Support me on Patreon:   / michaelmuinos  
🔗Follow me on LinkedIn:   / michael-muinos  
📂Follow me on Github: https://github.com/MichaelMuinos

The idea of the problem is to use a binary search to narrow our search in half upon each iteration. This problem has us using binary search in a different way however since we must move our pointers based on the difference between our "right" and "mid" pointer.

Since we should expect every number except one to have a duplicate, we move left or right depending on the the size of the difference we calculate.


На этой странице сайта вы можете посмотреть видео онлайн Microsoft Coding Interview Question - Single Element in Sorted Array (LeetCode) длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь AlgosWithMichael 22 Январь 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 24,918 раз и оно понравилось 409 зрителям. Приятного просмотра!