feature/437: add a faster solution

This commit is contained in:
novahe
2021-05-02 17:33:57 +08:00
parent 9c0603ea84
commit 4abb13e6ca
2 changed files with 23 additions and 1 deletions

View File

@ -45,7 +45,7 @@ func Test_Problem437(t *testing.T) {
_, p := q.ans437, q.para437
fmt.Printf("【input】:%v ", p)
root := structures.Ints2TreeNode(p.one)
fmt.Printf("【output】:%v \n", pathSumIII(root, p.sum))
fmt.Printf("【output】:%v \n", pathSum(root, p.sum))
}
fmt.Printf("\n\n\n")
}