87.Scramble-String
87. Scramble String
้ข็ฎๅฐๅ
้ข็ฎๆ่ฟฐ
Given a string s1, we may represent it as binary tree by partitioning it to two non-empty substrings recursively.
Below is one possible representation of s1 = "great":
great
/ \
gr eat
/ \ / \
g r e at
/ \
a tApproach #1
Last updated