I think this Kata may be impossible if it can't calculate all possible paths, plus the instructions aren't clear enough. Does your solution just pick the max of the 2 closest to it, the max above it? That's what I'd do, but that doesn't always give you the max path. Or does it?
This is because tests not in pyramide format
To example i format it, and slide from 75 to 77 its like slide from 64 to 17 :D
____75
__95__64
17__47__82
Thanks, this will probably let me pass the tests and get points for this kata, but I think it's still an issue.
If I can slide from 47 to 87, then following the same logic there shouldn't be a problem to slide from 75 to 77.
It's the same 'distance' only to the left, not right. There is no information in the description that you can only slide down or down right.
It's was a great kata, but please do correct the test cases.
Following the logic of choosing maximum available number in each line, i've arrived at 1088 and not 1073.
These are my steps (medium pyramid):
75
95
47
87
82
75
77
65
41
48
71
70
91
66
98
== 1088.
If i had chosen the other '41' (where there are two equal maximum values available), i'd arrived at 1112, so still not 1073.
Yea, the second one should be 1088.. please fix the test.
n/a
same here: 'aaaa' should equal 'aaaa' or aaaa should equal 'aaaa'
I think this Kata may be impossible if it can't calculate all possible paths, plus the instructions aren't clear enough. Does your solution just pick the max of the 2 closest to it, the max above it? That's what I'd do, but that doesn't always give you the max path. Or does it?
This is because tests not in pyramide format
To example i format it, and slide from 75 to 77 its like slide from 64 to 17 :D
____75
__95__64
17__47__82
Thanks, this will probably let me pass the tests and get points for this kata, but I think it's still an issue.
If I can slide from 47 to 87, then following the same logic there shouldn't be a problem to slide from 75 to 77.
It's the same 'distance' only to the left, not right. There is no information in the description that you can only slide down or down right.
U cant slide from 75 to 77.
It's was a great kata, but please do correct the test cases.
Following the logic of choosing maximum available number in each line, i've arrived at 1088 and not 1073.
These are my steps (medium pyramid):
75
95
47
87
82
75
77
65
41
48
71
70
91
66
98
== 1088.
If i had chosen the other '41' (where there are two equal maximum values available), i'd arrived at 1112, so still not 1073.