LeetCode 791 - Custom Sort String - Medium

preview_player
Показать описание
#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

Рекомендации по теме
visit shbcf.ru