qiyuangong/leetcode

Add Bitwise solution for Python 007_Reverse_Integer.py

ROMEEZHOU opened this issue · 3 comments

Hi, I noticed that the current solution for 007_Reverse_Integer.py is using string. I am wondering if it is possible that we also add a bitwise method (basically checking if the last bit is 1, and shift the binary string << 1 every time), which could be more proper here. I can add this method if that is ok.

Of course. You can create a PR for this new method. :)

Issue addressed by @ROMEEZHOU in #80

Thank you for your contribution! :)

Glad to help! This is a really helpful Repo!