filmov
tv
LeetCode 791 - Custom Sort String - Medium

Показать описание
#leetcode #leetcodedailychallenge #leetcodesolution #leetcodesolutions
Not medium! You can solve this problem with a variety of solutions, I do exactly what the problem is asking, sort by custom order!
Time complexity: O(n log n) because of the sorting part
Space complexity: O(n) because of the order dictionary
Not medium! You can solve this problem with a variety of solutions, I do exactly what the problem is asking, sort by custom order!
Time complexity: O(n log n) because of the sorting part
Space complexity: O(n) because of the order dictionary