LeetCode 1513. Number of Substrings With Only 1s in F#
URL
Number of Substrings With Only 1s - LeetCode
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/challenge/202511/number_of_substrings_with_only_1s/main.fsx
let numSub (s: string) : int =
let modulo = 1_000_000_007L
l...
syohex.hashnode.dev1 min read