donnemartin / interactive-coding-challenges

120+ interactive Python coding interview challenges (algorithms and data structures). Includes Anki flashcards.
Other
29.59k stars 4.46k forks source link

Fix test case of pairwise swap #307

Open marvin659 opened 1 year ago

marvin659 commented 1 year ago

This PR is about fixing the pairswap test case that highlighted in the issue #306

bits.pairwise_swap(1) answer should be 2 (i.e. binary 10) instead of 1.