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.
Initially solved this kata by a dumb brute-force filtering algorithm, but get stuck on the 6x6 kata. Then come back to check for others solutions. Did learn a lot from yours, thx a lot!!
Thanks for letting me know; I realized I had a bug in the test which caused it to terminate early. The shortest solution is indeed unique, and the tester should now reject other solutions as being too long (or not all-resistant).
This comment is hidden because it contains spoiler information about the solution
Done. The function now takes in the number of ranks as an additional argument.
Thanks, an oversight. I've now translated the local clojure tests into python.
Oh, good catch --- fixed.
In the python translation (haven't checked closure translation) the type chart and the list of types doesn't include the grass type.
no sample tests
Sure, I've been considering generalizations that would avoid this problem. One possibility would be to ask for a function of two variables, k=the number of triples, and n=the number of copies of each rank in the deck (or m=the number of available ranks). I want to make sure I don't make it too obscure, though.
With 14 possible outputs the whole thing can be simply hardcoded based on test failure messages - this kata is worthless in its current state.
When I submit the default boilerplate code in Clojure, it throws an error:
Exception in thread "main" java.io.FileNotFoundException: Could not locate math_parser__init.class or math_parser.clj on classpath.
This comment is hidden because it contains spoiler information about the solution