Add Bitwise solution for Python 007_Reverse_Integer.py
ROMEEZHOU opened this issue · 3 comments
ROMEEZHOU commented
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.
qiyuangong commented
Of course. You can create a PR for this new method. :)
qiyuangong commented
Issue addressed by @ROMEEZHOU in #80
Thank you for your contribution! :)
ROMEEZHOU commented
Glad to help! This is a really helpful Repo!