LeetCode 958. Check Completeness of a Binary Tree in F#
URL
Check Completeness of a Binary Tree - LeetCode
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/problems/0958/main.fsx
type Tree =
| Leaf
| Node of int * Tree * Tree
let isCompleteTree (root: Tree) : bool =
let...
syohex.hashnode.dev1 min read