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.
I agree
This comment is hidden because it contains spoiler information about the solution
Nevermind, the problem you experience is because you're mutating the original list.
Make a copy of
l
to fix your problem.If so, please do the following:
If there is an issue, someone might come and fix it. However, it's just not possible to fix "a problem" in unknown language.
Im sure there is a problem in this kata
I was debugging and judging by test results any act of evaluating loop brackets should increment the amount of completed iterations. It's not in line with instruction, which says:
It should either mention explicitly that even if we don't skip to matching bracket it should count as iteration, OR they should change tests to reflect that.
Is it going to look more like one liners in a production environment or will it be more segmented like mine?
shitty tests
Way too easy, but hey, free score is free score
python new test framework
Second test case says otherwise:
Assert::That(PythagoreanTriple(5,3,4) , Equals(true));
Approved
Very enjoyable kata! Although it can be solved using way shorter code than I did, it gave me an excuse to go all in and implement some of the common stages in a real compiler; tokenization, parsing into a syntax tree and evaluating it to produce raw "assembly"/command code! I very much enjoyed the complete journey from the syntax highlighting kata all the way to this one.
I have tried it on my computer and it works, but I don't know why it doesn't work on the OJ.
Lua translation!
Loading more items...