LeetCode 101. Symmetric Tree in F#
URL
Symmetric Tree - LeetCode
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/problems/0101/main.fsx
type Tree =
| Leaf
| Node of int * Tree * Tree
let isSymmetric (root: Tree) : bool =
let rec isSymmetric' left r...
syohex.hashnode.dev1 min read