GO_INTERVIEW_LIB Telegram 742
Как map добавляет элементы? (m[key] = value)

1️⃣ Вычисляется хеш ключа с учётом hash0.

2️⃣ Определяется номер корзины: bucket = hash % 2^B.

3️⃣ Проверяется наличие места среди слотов:
Если есть — записываем ключ и значение.
Если корзина заполнена — создаётся overflow bucket.
🌚8🤔5👍1



tgoop.com/go_interview_lib/742
Create:
Last Update:

Как map добавляет элементы? (m[key] = value)

1️⃣ Вычисляется хеш ключа с учётом hash0.

2️⃣ Определяется номер корзины: bucket = hash % 2^B.

3️⃣ Проверяется наличие места среди слотов:
Если есть — записываем ключ и значение.
Если корзина заполнена — создаётся overflow bucket.

BY Библиотека Go для собеса | вопросы с собеседований


Share with your friend now:
tgoop.com/go_interview_lib/742

View MORE
Open in Telegram


Telegram News

Date: |

In handing down the sentence yesterday, deputy judge Peter Hui Shiu-keung of the district court said that even if Ng did not post the messages, he cannot shirk responsibility as the owner and administrator of such a big group for allowing these messages that incite illegal behaviors to exist. But a Telegram statement also said: "Any requests related to political censorship or limiting human rights such as the rights to free speech or assembly are not and will not be considered." Those being doxxed include outgoing Chief Executive Carrie Lam Cheng Yuet-ngor, Chung and police assistant commissioner Joe Chan Tung, who heads police's cyber security and technology crime bureau. A vandalised bank during the 2019 protest. File photo: May James/HKFP. The Channel name and bio must be no more than 255 characters long
from us


Telegram Библиотека Go для собеса | вопросы с собеседований
FROM American