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.
Sorry, i forgot to mention that.
i did this in c#
added a second layer of protection.
Yes.
Help us help you. Tell us which language you're having these problems with.
Closing.
What language ?!?
Help us help you. Tell us which language you're having this problem with.
Closing.
I changed
assertEquals
toassertApproxEquals
to deal with floating point inaccuracies. You should have done this in the first place.It would have been acceptable to remove the wrapping class from your translation. In JavaScript, it adds nothing but confusion. The description could have been easily customised for JS.
Compliments on the random generator! That's a nice piece of work.
Help us help you. Tell us what language you're having these problems with.
The JavaScript translation meanwhile has been fixed to allow for floating point inaccuracy.
Closing.
Help us help you. Tell us what language, and markup your code as code ( with triple backticks. the unintended markup in your code renders it unreadable.
*
and_
actually mean italics .. )."List index out of range" sounds like a code issue, not a kata issue actually.
Please check your code for list indices out of range, and reraise a
Question
if you're still having problems. With code, marked as aspoiler
( you got that right ).It's not completely impossible that you have found a kata issue, but ATM, it's unlikely.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Print the input.
my code make every single test exept Test1a can someone tell me whats diffrent there then by the others?
Your code is sorting the strings in ascending order of length, and then joining k of them from the back, that's wrong. Your code should obtain the longest string made of k consecutive strings from the array that is the longest (and if there is more than one with the longest length, then your code should return the first one).
i sort after the length of the String (6-11) and then i take the longest ones out of my list at 17 - 21. it workes, exept the Longest K String are the same lenth. then it says it does not work.
Loading more items...