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.
I'll look into it. There are 39 testcases in the validation process, 30 of which are randomly generated. There are only 5 example testcases, but they cover the full-range of the functionality required of the program. If I can think of other possible testcases covering alternate flows not covered, I'll be sure to update the test suite.
I missed that. I took it off. Thanks!
True. I changed the description.
The built-in function max does exactly what is required: return 1 as a minimum. However the wording 'max', I thought could be clarified a little bit more: what is required
for specifying the stack would be a bound, that is between 1-->floor(1/10 * n) and 1-->floor(1/2 * length(list_one)). 'With two or more arguments, return the largest argument' is how max is specified in Python's help doc. However, the word 'maximum(floor(1/10n),1)' could be interpreted as a ceiling of 1 or floor(1/10n); so values like 0.9 or 0.8 are permissible. I am talking about the general specification of the problem for someone who is not familiar with the function max(). So I decided to word it as greater(floor(1/10*n),1) to explicitly specify that 1 is a lower-bound.
duplicate issue
I think there is a problem with your description. You give the following example:
list_1:[count(1)=minimum(floor(1/10*n),1]
list_2:[count(1)=minimum(floor(length(list_1)/2)),1]
list_x:[count(1)=minimum(floor(length(list_1)/2)),1]
list_last:[count(1)=remaining 1s]
I believe that you want to take the maximum, not the minimum.
The javascript version of the "Mountain of Gold: Arrangement Problem" appears to be broken. The Test for this kata displays the "twoOldestAges" kata, a completely different kata.
Tests need to be more thorough.
There's a dummy JS version. It should be deleted from the editor.
it is not, it is the index of a peak. in this kata, you have to return an array of peaks and an array of their indices
I don't know what values take WA for x-axis there, but they are wrong. Try with this other one: https://www.wolframalpha.com/input?i=plot+%5B%280%2C3%29%2C+%281%2C+2%29%2C+%282%2C+3%29%2C+%283%2C+6%29%2C+%284%2C+4%29%2C+%285%2C+1%29%2C+%286%2C+2%29%2C+%287%2C+3%29%2C+%288%2C+2%29%2C+%289%2C+1%29%2C+%2810%2C+2%29%2C+%2811%2C+3%29%5D&lang=es
I guess OP confusion came from the wrong graphic representation.
You're looking for all the peaks (think: mountain peaks), not just the highest one. The image you showed displays them both pretty well.
I'm a little bit confused:
[Example: pickPeaks([3, 2, 3, 6, 4, 1, 2, 3, 2, 1, 2, 3]) should return {pos: [3, 7], peaks: [6, 3]} (or equivalent in other languages)]
How is 7 a peak?
https://www.wolframalpha.com/input?i=plot+%5B3%2C+2%2C+3%2C+6%2C+4%2C+1%2C+2%2C+3%2C+2%2C+1%2C+2%2C+3%5D
<~~~It's about the WingSpan~~~>
So Loaded... Didn't know It's that.
The Chosen One always gets the Pan, Number 26
Loading more items...