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.
Good kata for dynamic programming! It's may be fun, but I write initial idea in 5 minutes and check whole 2 hours why this isn't works. By the end it being logical error in choosing next index. So be carefully, index in array works not the same as left and right pointer in the tree!
in the medium pyramid this the path : 75+64+82+87+82+75+73+28+83+32+91+78+58+73+93 = 1074
for example in 32 value is there 9 possible paths or 4 paths ?
Very great kata on dynamic programming and algorithms optimization, well done, congratulations.
interesting kata! I liked it. solution was simple, but takes about 5-6 hours. but I think example in description is not good, you need to analyze result from middle pyramid
why not?
please give us a little more explanation to our general mistake
No.
need to fix (as you already know) problem with the result:
second test result (checked by hand) - 1064, not 1074!
Maybe it's a mistake or another thing, idk...
You could have just read the posts below yours and their answers instead of creating another false issue.
You're choosing the wrong path.
Read this:
https://www.codewars.com/kata/551f23362ff852e2ab000037/discuss#5918235980a6997f7b000005
Not a kata issue.
This comment is hidden because it contains spoiler information about the solution
https://www.codewars.com/kata/551f23362ff852e2ab000037/discuss#633b43e52069d5b029de0cf8
[ 4, 62, 98, 27, 23, 9, 70, 98, 73, 93, 38, 53, 60, 4, 23]
75 + 95 + 47 + 87 + 82 + 75 + 73 + 28 + 83 + 47 + 43 + 73 + 91 + 67 + 98 = 1064
Почему не так? Написанно же, что наибольшее должно быть??
No, and it's been asked and answered many times before. Read the posts below before creating an issue next time, please.
The result should be 1064!
This comment is hidden because it contains spoiler information about the solution
Loading more items...