LeetCode 2385. Amount of Time for Binary Tree to Be Infected in F#
URL
Amount of Time for Binary Tree to Be Infected - LeetCode
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/problems/2385/main.fsx
type Tree =
| Leaf
| Node of int * Tree * Tree
let toGraph (root: Tree) : Map<int, in...
syohex.hashnode.dev1 min read