parameters: (self, N)
return_statement: return [i for i in result if i <= N]
docstring: :type N: int
          :rtype: List[int]
docstring_summary: :type N: int
          :rtype: List[int]
docstring_tokens: : type N : int : rtype : List [ int ]
function: def beautifulArray(self, N):
          """
          :type N: int
          :rtype: List[int]
          """
          result = [1]
          while len(result) < N:
              result = [i*2 - 1 for i in result] + [i*2 for i in result]
          return [i for i in result if i <= N]
function_tokens: def beautifulArray ( self , N ) : result = [ 1 ] while len ( result ) < N : result = [ i * 2 - 1 for i in result ] + [ i * 2 for i in result ] return [ i for i in result if i <= N ]