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!
@kks5475Ай бұрын
you explain very well but i think it can be more optimise- def reverseBits(self, n: int) -> int: result=0 for i in range(32): result = result >i)&1 return result
@rihhard10722 жыл бұрын
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 ?
@shreehari2589 Жыл бұрын
Interviewers won’t accept that solution
@saleheen1Ай бұрын
It's not only about solving a problem. The interviewers want to see how smart you are. In this problem they will want to see if you can solve the problem using bit operators. That's why
@ishayadav52214 жыл бұрын
Amazingggg
@AnuRadha-wk8vn4 жыл бұрын
👍🤩
@mallasatyanarayana19424 жыл бұрын
Cool
@hameedmulani21 Жыл бұрын
outpur same as your pronunciation
@MrIloveit11 Жыл бұрын
it doesn't matter at all, this Reverse bits video is the best so far on youtube.