the goal is to build a single string from the provided array (strarr) using only consecutive array elements
k represents the number of array elements you are allowed to take out
strarr = ['a','bb','c','ddd'] k = 2
bb & ddd are the two largest of the array elements but they are not consecutive therefore do not work
the correct answer would be c & ddd
This comment is hidden because it contains spoiler information about the solution
The kata is problematic. I posted about it, but in the meantime, I'd skip it.
I cant understand the question ;-;. Can someone explain it a bit more for me...
https://docs.codewars.com/training/troubleshooting/#print-input
Uhh it passed basic test but when I attempt it... 1 of the basic test failed... but the 200 tests passed... How am I suppose to know which input caused the fail....
Loading collection data...
the goal is to build a single string from the provided array (strarr) using only consecutive array elements
k represents the number of array elements you are allowed to take out
strarr = ['a','bb','c','ddd']
k = 2
bb & ddd are the two largest of the array elements but they are not consecutive therefore do not work
the correct answer would be c & ddd
This comment is hidden because it contains spoiler information about the solution
The kata is problematic. I posted about it, but in the meantime, I'd skip it.
I cant understand the question ;-;. Can someone explain it a bit more for me...
This comment is hidden because it contains spoiler information about the solution
https://docs.codewars.com/training/troubleshooting/#print-input
Uhh it passed basic test but when I attempt it... 1 of the basic test failed... but the 200 tests passed... How am I suppose to know which input caused the fail....