231. Power of Two (python) - Day 8/30 Leetcode June 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 #programming
Рекомендации по теме
Комментарии
Автор

There are so many ways to solve this one, hope it was fun for you!

Algorithmist
Автор

I've read this first in Henry S Warren's book Hacker's Delight.
The first chapter introduces lots of one liner bit wise operations/tricks.

ShashiBhushank
Автор

Ive seen that n & (n - 1) == 0 but never knew how it worked!

hellowill
visit shbcf.ru