comefrom: <doocs>0087.Scramble String_1.py
code: def isScramble( s1: str, s2: str) -> bool:
      n = len(s1)
      dp = [[[False] * (n + 1) for _ in range(n)] for _ in range(n)]
      for i in range(n):
          for j in range(n):
              dp[i][j][1] = s1[i] == s2[j]
      for l in range(2, n + 1):
          for i1 in range(n - l + 1):
              for i2 in range(n - l + 1):
                  for i in range(1, l):
                      if dp[i1][i2][i] and dp[i1 + i][i2 + i][l - i]:
                          dp[i1][i2][l] = True
                          break
                      if dp[i1][i2 + l - i][i] and dp[i1 + i][i2][l - i]:
                          dp[i1][i2][l] = True
                          break
      return dp[0][0][n]
masked: def sample_funcname ( var_0 : str , var_1 : str ) -> bool :
      var_2 = len ( var_0 )
      var_4 = [ [ [ False ] * ( var_2 + 1 ) for var_3 in range ( var_2 ) ] for var_3 in range ( var_2 ) ]
      for var_5 in range ( var_2 ) :
          for var_6 in range ( var_2 ) :
              var_4 [ var_5 ] [ var_6 ] [ 1 ] = var_0 [ var_5 ] == var_1 [ var_6 ]
      for var_7 in range ( 2 , var_2 + 1 ) :
          for var_8 in range ( var_2 - var_7 + 1 ) :
              for var_9 in range ( var_2 - var_7 + 1 ) :
                  for var_5 in range ( 1 , var_7 ) :
                      if var_4 [ var_8 ] [ var_9 ] [ var_5 ] and var_4 [ var_8 + var_5 ] [ var_9 + var_5 ] [ var_7 - var_5 ] :
                          var_4 [ var_8 ] [ var_9 ] [ var_7 ] = True
                          break
                      if var_4 [ var_8 ] [ var_9 + var_7 - var_5 ] [ var_5 ] and var_4 [ var_8 + var_5 ] [ var_9 ] [ var_7 - var_5 ] :
                          var_4 [ var_8 ] [ var_9 ] [ var_7 ] = True
                          break
      return var_4 [ 0 ] [ 0 ] [ var_2 ]
  