Closed ycdoit closed 7 years ago
Hi @ycdoit. Thanks for report. Unfortunately I don't have enough time to debug it properly and without real test cases I can't say should be your suggestions applied or not.
So, without hand examples that will fail on the original code and will pass with your changes I prefer to not change anything :)
Ok, that's fine.
But I would like to explain my changes.
I feel there are some lines look incorrect:
First: Should it be
self.number_isolated_tiles ^= (1 << k)
? Second and Third: Should they beself._run(depth)
?I tried to fix them as above and they passed your unit tests as well. However, I haven't find any negative case that make only original code fail. So, what do you think about above changes?