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.
Your solution using recursion is very cool
Happened to me as well, hahaha
This comment is hidden because it contains spoiler information about the solution
Poetry
Well... I did feel proud of my solution. 🙃
Edit: Just realized I forgot to delete the
var_dump
line... 🤦@EvgeniiKlepilin is correct, although this solution technically passes the tests, the tests don't cover all of the requirements that are listed in the description. I've posted on Discord to see if someone can add a few additional tests, as this incorrect solution is actually giving bad information to new users.
What is
%
for? I read this explanation but I can't understand: https://www.php.net/manual/en/function.sprintf.phpI hate your solution, it is so simply that I want to stop coding :P
:clever:!!!
I believe it was a joke
it is not a combat mission where different development of events is possible, and the task is to complete a specific mission without any if. The task is done.
Impressive!
The test cases for this problem do not cover instances when x or y could be strings in case of subtraction, divison or multiplication. Ideally, you would first check if x and y are ints, and not allow any operation if it they are any other type. In your case, you only cover addition with this type check. If I were to input strings in x or y with -, *, or /, it would produce a type error.
I'd take hard coding instead of hard scrolling :D
i have the same solution
Loading more items...