ChatCrawlerпоиск по публичному Telegram Открыть приложение
3

30 Days Of Python

4 января 2021
2021-01-04×
4 января 2021
Фотография
нажмите — покажем
I
For elements in arr1 iterate through all the elements in the arr2 If not present return the element
For this I think if you consider how the sum operator works underneath you'll figure that both will turn out to have the same run time
Sum of element method will be O(n)
A
I guess converting a array into set should be taking linear time ? Any idea guys
Benjamin FarunaHash function?
You know, sets enforce uniqueness of their contents. Therefore, each element has to be assign different hash code. For example, say, a set already has 1 assigned a hash code abCgh(I fabricated this), the set will not take in another 1 because it will silently ignore the copy operation when it finds out that 1 already exists in the set. This uniqueness is implemented by some languages behind the scene using hash function.
O
*has to be assigned...
O
I think he is referring to their similarity in terms of uniqueness of content
Календарь: январь 2021
Архив по месяцам
Открыть в Telegram Каталог площадок Искать в ChatCrawler

Слепок открытой публичной ленты из поискового индекса ChatCrawler — «Google по публичному Telegram»; обновляется по мере обхода площадки. Время — UTC.

Только публичный контент, официальный API Telegram. О проекте · Вопросы · Чего мы не делаем · Убрать страницу из выдачи · Каталог