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.
Print the inputs.
Help us help you. When posting code, mark it up as code.
You have hit on the essence of the kata. I see no way to help you without giving it away completely. Maybe someone else does.
Click reset, the sorting part was removed. Check the new initial code, you'll have to fix it so the random tests don't fail.
I can't disclose more without giving up the solution but while the code works outside CW, it'll fail here (that's the task you have to do here).
@pogo1047
this issue has been fixed.Also, your code doesn't work because it only includes cases 1-4 but nothing higher. Therefore, change
case 4:
todefault:
.Post your solution below and mark it as a spoiler.
Though I highly suspect that your spacing is an issue,
try replacing spaces with another character and log that to the console,
make sure you don't have any leading or trailing spaces...
This is not an issue with the kata because there are no default test cases.
please resolve,
Thank you :)
There isn't much to get actually, I thought there was a repeating pattern in the fruits at first but whenever you're doing an 8 kyu kata there's probably a simple solution.
Just try to calculate some sample and you will know why.