Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Perhaps because it doesn't use
itertools.product
? Zen of Python says "There should be one-- and preferably only one --obvious way to do it." Many people take this to mean that you should use built-ins where available, instead of reinventing them.Nice use of recursive algorithms! 👏
I'm curious why this isn't best-practice?
Compared to the current best-practice solution, this solution is self documenting and requires no prior knowledge of the
itertools.product
library function.Hi Ananyats, it would have been better if you asked a specific question or comment to complement your code. If you just wanted to show us your code, no need, we can already see it in the "solutions" page.