Bitwise AND of Numbers Range (python) - Day 23/30 Leetcode April Challenge

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 #python #programming
Рекомендации по теме
Комментарии
Автор

Tricky adhoc problem! How did you do today, did the AND trick you up?

Algorithmist
Автор

I definitely didn't like this problem, lol. I spent 2 hrs, no luck yet.

rahil_rehan
Автор

Great video Larry!
It would be interesting to notice that the solution can also be obtained by the longest common prefix(m, n) in binary notation followed by zeros... Which again is pretty much what you've done too!!

royarijit