TweakCode
Optimization lessons
Loading editor…
Test casesRun to compare output
Input
s1 = "aabcc", s2 = "dbbca", s3 = "aadbbcbcac"
Output
—
Expected
true

More practice

Same technique, different problems. Try them without the walkthrough.