3133. Minimum Array End (Leetcode Medium)

preview_player
Показать описание
Larry solves and analyzes this Leetcode problem as both an interviewer and an interviewee. This is a live recording of a real engineer solving a problem live - no cuts or edits!

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

Which end of the array did you prefer?

Algorithmist
Автор

kudos to you figuring this type of intuition out, first thing I thought was starting off at x and periodically incrementing by finding the lsb set in x and not set in my current number.

kentnar
Автор

you made me to understand the intuition in less than 3 minutes 😄

muhammedjafer
Автор

The intuition was great, incrementing from 0 to n-1 numbers, leave the set bits untouched and pick out 0s and after x numbers, whats the number's bitwise pattern, and add that pattern back to starting point's binary pattern.

deepakviswanadh
welcome to shbcf.ru