3 ms·
Brilliant! Cool to see the two paradigms side-by-side. If there was a similar puzzle that had more than one solution, would it be straight-forward to do that u
by hjek 7y ago
Brilliant! Cool to see the two paradigms side-by-side.
If there was a similar puzzle that had more than one solution, would it be straight-forward to do that using for loops as well in Python? (Curious if you can do backtracking that way)
- todd8 7y agoYes, this approach does find every solution and it is using backtracking. See my other reply to a sibling comment.