Reverse bits | Leet code 190| Theory explained + Python code | July leet code

preview_player
Показать описание
This video is a solution to Leet code 190, Reverse bits. I first give a theoretical explanation and then I go over its Python implementation.

Comment below if you have a better solution to this problem!

Let me know if you have any feedback and don't forget to subscribe for more videos!

Gear used:
Рекомендации по теме
Комментарии
Автор

I watched a few videos on the bit shifting solution to this question and yours was the best. your explanation was very clear. thank you!

eustin
Автор

Im confused why we dont just convert the integer to a string, reverse slice it and then convert back to int.

What am I missing ?

rihhard