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.
You are right, just my solution is not correct.
9534330 bigger than 9534303.
Sorry I have not understood task
I don't know what that means. Have you read the description?
when you say "why", are you suggesting there's an order that forms a higher number? if so, what order is that?
Thanks for the answer; I mean why would 3 be first than 30?
you're not asked to sort the numbers if that's what you mean. that seems to be what you're saying.
hi,
Can anyone explain why in this case
[3, 30, 34, 5, 9] --> "9534330"
3 bigger than 30?
thanks for the help
Also, your code fails for cases like
Because your
founded
will store7
, but you output the 1st occurence or index (position) of that value, in which the correct result should be7
(index) instead of3
(first occurence of the value7
)In this case : solution([2,2,2], [?,2]) // what result should I get ?
Thanks
Hi, thanks for you Kata.
Could clarify,
how to compute inflation rate ?
CPIs endDate - CPIs startDate ?
How does 38.85 appear in your solution?
Thanks
thank you for your response. I have solved this Kata.
Could be better if you add to this Kata "If n is greater than the length of values, you should return the sum of the whole array. "
If
n
is greater than the length ofvalues
, you should return the sum of the whole array. That's not what you are doing there :Hi, can you help me ?
"maximumSum with n>values.length not working as expected"
var values = [5, 4, 3, 2, 1];
console.log( maximumSum(values, 7)) // 7 > 5 return 5
What is problem ?
thank you for your help
There
Sorry, I'm some confused. I have got this result.
I don't understand what difference between two string
expected '65 119esi 111dl 111lw 108devi 105n 97n 111ka' to equal '65 119esi 111dl 111lw 108dvei 105n 97n 111ka'
Can you help me?
I haven't yet unlocked this kata so I can't see test cases, but thinking logically:
this example is using a function called
trueIfLengthEqualsIndex
- in other words it will returnTrue
if the element in the array has the samelength
as its index.Working through the example array given - write down the length of each element and its index:
The input array
["one","two","three","four","five","six"]
therefore gives - where e.g.
len("three")=5
:[ index 0 len=3, index 1 len=3, index 2 len=5, index 3 len=4, >>>> index 4 len=4 <<<< , index 5 len=3]
so I would expect
4
to be the correct result here.Loading more items...