2186. Minimum Number of Steps to Make Two Strings Anagram II ¶
- Time: $O(|\texttt{s}| + |\texttt{t}|)$
- Space: $O(26) = O(1)$
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
1 2 3 4 5 6 7 8 |
|
1 2 3 4 5 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
1 2 3 4 5 6 7 8 |
|
1 2 3 4 5 |
|