interactive-coding-challenges
interactive-coding-challenges copied to clipboard
Alternate flip_bit_challenge solution
This solution is clearer The space complexity is less (O(1)). It requires much less code
compared to previous merge this has: Algorithm description updated for new solution. Comments added to code
I recommend do not delete the past algorithm. I think that is good have n-version to know different options.
Ok, shall I open a pull request which creates a new file say: flip_bit_solution2.py ?
I think that you can write the new algorithm in the flip_bit_solution.py
with a new subtitle, e.g. ''Algorithm 2: better flip bit algorithm".
Here, there are a sample: interactive-coding-challenges/arrays_strings/unique_chars/unique_chars_solution.ipynb
Anyway, we should wait to @donnemartin to know his opinion.