comefrom: <doocs>1016.Binary String With Substrings Representing 1 To N_1.py
code: def queryString( s: str, n: int) -> bool:
      for i in range(n, n // 2, -1):
          if bin(i)[2:] not in s:
              return False
      return True
masked: def sample_funcname ( var_0 : str , var_2 : int ) -> bool :
      for var_8 in range ( var_2 , var_2 // 2 , - 1 ) :
          if bin ( var_8 ) [ 2 : ] not in var_0 :
              return False
      return True
  