LeetCode 2359. Find Closest Node to Given Two Nodes in F#
URL
Find Closest Node to Given Two Nodes - LeetCode
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/problems/2359/main.fsx
let closestMeetingNode (edges: int[]) (node1: int) (node2: int) : int =
let rec getDistance node di...
syohex.hashnode.dev1 min read