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.
done
Fixed in NASM.
it sounds like the infamous mutable default arguments Python gotcha. But without more information it's impossible to be sure, and the OP is gone.
OP solved it, closing
OP solved it, closing
Helpful. Thank you!
Java Translation
nice kata. however, i used a function with a default argument for my preorder, postorder and inorder functions, and the tests persist the value of this default parameter. I could write this program outside of the codewars interface, but can't in the way the interface expects me to write it. This seems to be a bug in the interface.
.
Python Translation
Cannot run the test in c++ got the following error:
1 warning generated.
/tmp/main-c73091.o: In function
BasicTests::Test1()': main.cpp:(.text._ZN10BasicTests5Test1Ev[_ZN10BasicTests5Test1Ev]+0xf): undefined reference to
Automaton::Automaton()'/tmp/main-c73091.o: In function
BasicTests::Test2()': main.cpp:(.text._ZN10BasicTests5Test2Ev[_ZN10BasicTests5Test2Ev]+0xf): undefined reference to
Automaton::Automaton()'clang: error: linker command failed with exit code 1 (use -v to see invocation)
Really easy and funny kata trying to explain something that can get very complex pretty easily.
TS translation, please review and approve.
Dude, thanks for going so far as to make an edit. When I first looked at the code I thought it seemed weird. So it was Python.
The
Node
class is only available in the trainer, where it is preloaded. If you want to try it outside the trainer, either in the browser or in your code editor, here it is:Edit : JS version of the Node class, not the Python one.
Loading more items...