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.
9 - 1*1 * 2(because price is 2) = 7
7 - 2 * 2 * 2 = -1
but we cant have the -1 beer thats why the answer is 1
https://www.codewars.com/kata/5279f6fe5ab7f447890006a7/discuss#64f5b8c72b610bbbb906767f
What is "peaks"??????????????????????
why for [3,2,3,6,4,1,2,3,2,1,2,2,2,1] the result is [3, 7, 10] why doenst [3, 7, 10, 12]
read the description again more carefully
This comment is hidden because it contains spoiler information about the solution