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 inputLines = GetLinesFromFile(path) |>Seq.toList
let containsThreeVowels (input: string) =
input.ToCharArray() |> Array.filter(fun c -> c = 'a' || c = 'e' || c = 'i' || c = 'o' || c = 'u') |> Array.countBy(fun c -> c) |> Array.sumBy(fun c -> snd c) >= 3
let twiceInARow (input: string) =
(['a'..'z'] |> List.filter(fun c -> (input.Contains((string c)+(string c))))).Length > 0
let notBadString (input: string) =
not (input.Contains("ab")) && not (input.Contains("cd")) && not (input.Contains("pq")) && not (input.Contains("xy"))