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