comefrom: <garvit244>140_1.py
code: def check( s, wordDict):
      dp = [False for _ in range(len(s)+1)]
      dp[0] = True
      
      for i in range(len(s)):
          for j in range(i, -1, -1):
              if dp[j] and s[j:i+1] in wordDict:
                  dp[i+1] = True
                  break
      
      return dp[len(s)]
masked: def sample_funcname ( var_0 , var_1 ) :
      var_3 = [ False for var_2 in range ( len ( var_0 ) + 1 ) ]
      var_3 [ 0 ] = True
      for var_4 in range ( len ( var_0 ) ) :
          for var_5 in range ( var_4 , - 1 , - 1 ) :
              if var_3 [ var_5 ] and var_0 [ var_5 : var_4 + 1 ] in var_1 :
                  var_3 [ var_4 + 1 ] = True
                  break
      return var_3 [ len ( var_0 ) ]
  