ALIEN DICTIONARY (Leetcode) - Code & Whiteboard
Автор: babybear4812
Загружено: 2020-10-26
Просмотров: 7574
Описание:
This one is definitely a toughie! Let me know if you have any questions about Leetcode #269 - Alien Dictionary down below :)
Time Complexity: O(c), where c represents the total number of characters in the string. (If every word is of the same length, n, we will walk through each character at most twice when doing our initial walkthrough to create the adjacency list -- this is the time-heaviest operation.)
Space Complexity: O(1), since the size of the alphabet is limited to the 26 characters we have in the English language.
https://leetcode.com/problems/alien-d...
---------------------------------------------------------------------------------------------------------------------------------------------------------------
Let's connect on LinkedIn!
/ aleksmitrovic
Follow me on Medium!
/ mitrovic.aleksandar
Questions or suggestions for new videos? Email me!
[email protected]
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: