[LeetCode] Binary String With Substrings Representing 1 To N

1 · · July 29, 2022, 2:35 p.m.
1016. Binary String With Substrings Representing 1 To N Given a binary string s and a positive integer n, return true if the binary representation of all the integers in the range [1, n] are substrings of s, or false otherwise. A substring is a contiguous sequence of characters within a string. ...