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.
filter give only the matching chars then length gives how many chars are left. if total matching chars are 5, filter keeps 5 chars and remove all not matching chars, then length give the total length of remaining chars.
Return the shorter of the two input parameters, then the longer one, then the shorter one again, concatenated in that order.
This comment is hidden because it contains spoiler information about the solution
Fixed.
This comment is hidden because it contains spoiler information about the solution
Split returns an array, filter goes through that array looking for in this case a letter, and length returns the amount of elements in that array.
Hello Tyler, the array is
[6, 2, 1, 8, 10]
, the highest element is10
, the lowest element is1
, the sum of all the numbers except the highest and lowest element is6 + 2 + 1 + 8 + 10 - 10 - 1
, or simplified6 + 2 + 8
, which equates to16
.This comment is hidden because it contains spoiler information about the solution
Click Reset and try again.
Your function doesn't return, not a kata issue.
balu9, in C it can be solved with an if and two built-ins, if that's not an 8kyu kata I don't know what it is.
He is right, it's not about complaining , this kind of stuff will frustrate a beginner, atleast the author will take care of the ranking from next time if we point it out
what does your solution return for n=100000000000?
Bug in your solution is not a kata issue.
Fixed.
Loading more items...