You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let commonElements = Utilities.commonElements lists
lists |> List.exists(fun l -> l.Length = commonElements.Count)
let execute =
let inputLines = GetLinesFromFile(path) |> Seq.toList
let elvesPairs = inputLines |> List.map(fun l -> [[|(int)(l.Split(',').[0].Split('-').[0])..(int)(l.Split(',').[0].Split('-').[1])|]; [|(int)(l.Split(',').[1].Split('-').[0])..(int)(l.Split(',').[1].Split('-').[1])|]])
elvesPairs |> List.sumBy(fun e -> if (isFullyOverlapped e) then 1 else 0 )