Custom Sort String | Leetcode 791 | String Sorting Bucket Sort | Facebook

preview_player
Показать описание



Popular Playlists:

Follow me on -

#Facebook #String #Sorting #Leetcode #Algorithm #DataStructure #Java #Preparation #NG #nickode #CookCodeTravel #CCT
Рекомендации по теме
Комментарии
Автор

Time complexity is o(n*k) where n is the length of the order string . Where k is the frequency of that character. Frequency loop and the last loop will take constant time. O(1)

praveenj