---
title: "Discussion on \"LeetCode 1513. Number of Substrings With Only 1s in F#\" | Hashnode"
description: "Discussion on \"LeetCode 1513. Number of Substrings With Only 1s in F#\". URL\nNumber of Substrings With Only 1s - LeetCode\nCode\nhttps://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/challenge/202511/number_of_substrings_with_only_1s/main.fsx\nlet numSub (s: string) : int =\n    let modulo = 1_000_000_007L\n\n    l..."
url: "https://hashnode.com/posts/leetcode-1513-number-of-substrings-with-only-1s-in-f/691962bcefcd1064a323ce78"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [LeetCode 1513. Number of Substrings With Only 1s in F#](https://syohex.hashnode.dev/leetcode-1513-number-of-substrings-with-only-1s-in-f?utm_source=hashnode&utm_medium=feed)

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...

Nov 16, 2025 · 1 min read · syohex.hashnode.dev  
Read the article

## Written by

[Shohei Yoshida](https://hashnode.com/@syohex)

@syohex · Tokyo, Japan

  
[View profile](https://hashnode.com/@syohex)

A Software Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
