1754. Largest Merge Of Two Strings ¶
- Time: $O(|\texttt{word1}|^2 + |\texttt{word2}|^2)$
- Space: $O(|\texttt{word1}|^2 + |\texttt{word2}|^2)$
1 2 3 4 5 6 7 8 9 10 11 |
|
1 2 3 4 5 6 7 8 9 10 |
|
1 2 3 4 5 6 7 8 9 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|
1 2 3 4 5 6 7 8 9 10 |
|
1 2 3 4 5 6 7 8 9 |
|