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.
Lesson learned: vm.runInNewContext is slow in js. :) Wonder if it was the context switches.
Might be worth updating the node version here or explicitly marking it in the task description. Node 0.10 is considered very out of date by now.
Thanks for re-enabling
require
and sorry this turned to be a source of controversy.I think the question to ask when disabling things is if helps with what the Kata is trying to teach? Sometimes you do want to teach people how the tools they're using under the hood work and these make for great taske.
In this case however, the task is not made easier as there's no library for doing exhaustive search. Using libraries here however allows users to write cleaner code, better reflecting what they might write the real world.
Anyways, just my opinion. YMMV. Thanks again for working on this task! :)
Great task, had fun solving it!
Some notes:
This comment is hidden because it contains spoiler information about the solution
Note: You can set maxsize to None to have the cache be unlimited.
This comment is hidden because it contains spoiler information about the solution
Fun task, thanks.
A single nitpick would be that the description could be improved: I understood the task that in addition to doing what needed to be done, each instance should have a
unique_class_method
andunique_instance_method
methods which return the real (unique) methods accordingly.This comment is hidden because it contains spoiler information about the solution
That's an artifact of me copying and pasting. Since I passed all the other tests that submission and all of them on re-submitting I don't think that's the reason it was rejected.
Looking at the expected solution, hate and have positions are reversed from what I take they should be based on my guesswork of what rule 2 means. I'm thinking there might be a subtle bug in the reference solution, worth checking?
This comment is hidden because it contains spoiler information about the solution
Perfect, thanks!
Re 3rd: is this a valid puzzle (spaces denoted with _)?
Note the missing whitespace on the right-hand side for 2nd and 3rd row.
Couple of things that might be useful to add to the description:
This test is still there and buggy as from this board state X can only win.
Really curious about what people think of this solution. The functools library is fantastic for solving these sorts of tasks efficiently in python 3.
Loading more items...