LeetCode 214. Shortest Palindrome in F#
URL
Shortest Palindrome - LeetCode
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/challenge/202409/shortest_palindrome/main.fsx
let shortestPalindrome (s: string) : string =
let rec findLongestPrefix (cs: char[]) left rig...
syohex.hashnode.dev1 min read