donnemartin / interactive-coding-challenges

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

Better flip_bit_challenge solution #166

Closed bootandy closed 7 years ago

bootandy commented 7 years ago

I was working thru some challenges and I noticed my solution was much clearer than the suggested one

donnemartin commented 7 years ago

Hi @bootandy, thanks for the PR! I hope to review this within the next few days.

donnemartin commented 7 years ago

Hi @bootandy, I'm having trouble understanding the proposed solution and I don't see a discussion of the algorithm. It does seem like a shorter solution in terms of lines of code, but I'm not sure I'd consider this 'better' or 'much clearer' than the current solution.