LeetCode 100. Same Tree in F#
URL
Same Tree - LeetCode
Code
dotnet-study/main.fsx at master · syohex/dotnet-study · GitHub
type Tree =
| Leaf
| Node of int * Tree * Tree
let rec isSameTree (p: Tree) (q: Tree) : bool =
match p, q with
| Leaf, Leaf -> true
| No...
syohex.hashnode.dev1 min read