题目: Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representation of s1 ="great": great/ \gr ea
3D dp问题 class Solution {public:bool isScramble(string s1, string s2) {// Start typing your C/C++ solution below// DO NOT write int main() functionint N = s1.size();if(N != s2.size()) return false;
题意: Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representation of s1 = "great": great / \ gr
题目描述: Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representation of s1 = "great": great /
题目:搅乱字符串 Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representation of s1 = "great": great/ \gr
[[Leetcode]87. Scramble String](https://leetcode.com/problems/scramble-string/) - 本题难度: Hard - Topic: divide and conquere # Description Given a string s1, we may represent it as a binary tree by par