Skip to content

Commit

Permalink
day 201: add comment re: assumptions of correct input
Browse files Browse the repository at this point in the history
  • Loading branch information
vaskoz committed Mar 11, 2019
1 parent 9b3dbcf commit c5398cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions day201/problem.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package day201
// MaxWeightPathTriangle returns the weight of the maximum weight path
// as defined by the problem.
// Runs in O(N) time.
// Assumes a correct triangle as input.
func MaxWeightPathTriangle(tri [][]int) int {
return maxWeightPathTriangleHelper(tri, 0, 0)
}
Expand Down

0 comments on commit c5398cf

Please sign in to comment.