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.
resolved
My code runs pretty fast with sample basic tests in PHP, but when I try to run the full tests, it times out. Is there possibly an issue with the PHP random tests? Here's my current log, where I'm logging each number to see what's going on.
TestCases
testBasics
Log
int(17)
int(5)
int(22)
int(14)
int(25)
int(45)
int(48)
int(35)
int(23)
int(35)
int(79)
int(66)
int(98)
int(95)
int(70)
testBasics
Completed in 8.19ms
STDERR
Execution Timed Out (12000 ms)
I added a PHP translation
The tests in the PHP version are not correct. It generates randomly arrays of numbers without strings.
I finally gave up and looked at solutions, and they're wrong.
This comment is hidden because it contains spoiler information about the solution
Hello @mdfleury I did not create the PHP translation it was done by @donaldsebleung. That being said I do not see any issue with the randoms and 54 other guys have passed it. Will you please post your code and mark spoiler so I can take a look?
I'm unable to pass the testRandom with PHP. The average is always twice what I calculated, and the string is empty, since it's 20 numbers and no strings.