I went through my code again and again so why only 2 test cases passed?
Why my all the test cases not passed? - Chewbacca and Number?
hey @LPLC0114, you are making problem so complicated by extracting each bit and checking. This problem is very easy to solve.I suggest you to go through this video, prateek sir has explained it very well.
In case any doubt, feel free to ask.