LeetCode 113. Path Sum II in F#
URL
https://leetcode.com/problems/path-sum-ii/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0113/main.fsx
type Tree =
| Leaf
| Node of int * Tree * Tree
let pathSum (root: Tree) (targetSum: int) : int list...
syohex.hashnode.dev1 min read