LeetCode 1372. Longest ZigZag Path in a Binary Tree in F#
URL
Longest ZigZag Path in a Binary Tree - LeetCode
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/problems/1372/main.fsx
open System
type Tree =
| Leaf
| Node of int * Tree * Tree
let longestZigZa (root: Tree) : in...
syohex.hashnode.dev1 min read