Leetcode - Counting Bits (Python)

preview_player
Показать описание
May 2020 Leetcode Challenge
Leetcode - Counting Bits
Рекомендации по теме
Комментарии
Автор

Wow. Genius! faster than 99.96% of submissions

Historyiswatching
Автор

Great work with whiteboard explanation! Just one quick question: how does 'i+1' work under while loop. We do not define how to bitwise each number, how are we be sure what to add in the output? That is where is the step to transfer number into binary format and count how many 'ones'? Just like confused about that part. It would be appreciated for your help!

elegentt
Автор

Good video and nice logic, thank you!

zhaowencheng
join shbcf.ru