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.
this is what i thought but couldnt manage to write :(
@mauro-1 is right that it won't traverse the entire array multiple times, but that's not the point. The worst case traverses almost the entire array three times: something like
[1, 1, 1, 1, 1] * n + [0, 2]needs3n + 3comparisons (if my maths is correct) whenn - 1are sufficient.Hi are you accepting translations? If so I might do a Go one.
There's always one.
The language specification needs quite a bit of work:
As you adviced, it worked after changing to PHP 8.0.
Thanks!
It looks like you might be on php 7.0, try changing the php version at the top of the page to 8.0. I'm not sure what causes this, but it might be a bug in the 7.0 runner, or the test suite isn't compatible with 7.0 anymore. Either way, changing it to 8.0 should fix it for you.
When I tried to submit in PHP, I encountered the following error.
Since my program works fine in tests, I suspect it's a problem with the Kata.
Looks ok, approved
Lua translation!
Scala 3 update required
Scala:
Great kata! Also the first 2 kyu that I completed.
What is the point of
getRegin C++ solution setup if it's not even tested?Your code is not correct, it does not handle nested
callcorrectly.Loading more items...