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 comment is hidden because it contains spoiler information about the solution
RIP Pemdas
🥲
Forked and approved
Scrutinized tests
Corrected actual and expected parameters' position
Modified reference solution to be different from author's solution
Unified function name for solution setup
Added type declaration
Added useful assertion messages
Modified random test to generate shuffled inputs
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Nice Kata, but I suggest adding a test case where the preceding name also contains an "!"
First time I notice that if R and or G if greater than B we get yellow :D :D :D
But overall nice one ;)
Seriously? :( 7 kyu?
There's a "bug" in your solution, try checking with input
$num = 696
and see what is wrong.Not a kata issue.
The test cases generates palindrome numbers, so the test cases sometimes pass, and other times fails, will correct for PHP and publish
Thank you for the review, May I ask you to check again?
I got confused the first two tries
Thank you in advance <3
Found also these problems:
?>
tag is discouraged in PHP (used in Solution and Solution Setup)actual
andexpected
parameters, in PHPUnitexpected
comes first,actual
comes second.Loading more items...