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.
Getting the same error in PHP. It's happening because one of the random tests expects a wrong answer. Keys should be increments of 1 starting at 0, but the random test asks for keys incrementing by 2.
Testing for numbers = [1, 2, 3], target = 4
expected [ 1, 3 ] to deeply equal [ 0, 2 ]
I am having this error. how come 1+3!=4? and why is [0,2] the answer when "0" is not even included in the given list? Anybody?
This comment is hidden because it contains spoiler information about the solution
Fatal error: Cannot redeclare capped() (previously declared in /home/codewarrior/run.php:9) in /home/codewarrior/run.php on line 9
How to resolve this? My code's fine and working on compiler.
Failed asserting that exception of type "InvalidArgumentException" is thrown (getting 5 of these).
What I understand from this is, invalid arguments are passed in the tests for the method get_kata_by_number. What am I supposed to do?
Thank you. A Python programmer here. I just started programming in PHP, this wasn't the case in Python lists.
That's because while the values in the array are the same, the keys aren't.
Same here. I'm getting a message about failing 1 testRandomCases.
[testRandomCases
Failed asserting that two arrays are equal.]
I don't understand what it means.
Here is the relevant section of the Codewars troubleshooting guide:
My solution works on my machine, but not on Codewars
Same here. My code works on localhost, but not in here.
Nasm translation
approved
Rust translation
Anyone who is facing problem in php? My code runs fine on compiler but failed random test here.
Thank you for this series!
Loading more items...