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 is genius! =) Simple as a stone - elegant as a butterfly! =)
.Length returns the total length of the string starting from 1. We need to access the index which begins at 0. If we wanted to access the last index of the original string it would be Length-1. Since we want to cut the last character off, we use -2. Hope that helps
You can see other solutions in Solutions section and learn from them.
This comment is hidden because it contains spoiler information about the solution
wow!! excelent! i took a tortuous path! hahaha !! xD great job!!
If you are talking about an actual hidden test case that isn't doing enough tests, then you will have to specify which programming language you are talking about.
The Sample Test Case is one you are supposed to write yourself. And it is not like this kata is all that hard, so it feels like overkill to add all those.
The basic idea I had when I made it this kata, was to have users learn that they can't trust the Sample Test Case to be complete and they should expand it themselves if they think they need it.
If you really want to test your solution, you would submit it anyway, which has all the hidden test cases.
There's a minor improvement to be made to your test suite.
Currently, it only evaluates the function with a single input value (42).
It's advisable to include multiple test cases covering a broader spectrum of scenarios.
This ensures thorough testing and verifies that the function behaves correctly across various input types, including positive, negative, and zero values.
Teach meeeeeee
same with me
An easy one! passed
You don't have to post your answer as a comment. Just do the kata again and it will be added to the Solutions section automatically.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Interesting the way you create the return %i %i. Something new for me thx
Loading more items...