LeetCode 279. Perfect Squares in F#
URL
https://leetcode.com/problems/perfect-squares/description/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/challenge/202402/perfect_squares/main.fsx
let numSquares (n: int) : int =
let rec squares i n acc =
if ...
syohex.hashnode.dev1 min read