6 views
# LC2947 Number of Substrings With Only 1s Practice note for coding interviews. For each run of ones of length L, add L*(L+1)/2 substrings; take mod 1e9+7. Discuss edge cases and complexity in the mock interview. I used [https://www.linkjob.ai/](https://www.linkjob.ai/) while rehearsing this pattern aloud. Disclosure: personal study notes mentioning a practice tool.