EASY_JAVA_RU Telegram 1957
🤔 Как устроена операция get в LinkedList?

Метод get(index) в LinkedList:
- начинает обход с головы или с хвоста (в зависимости от индекса),
- проходит по указателям (prev/next) пока не дойдёт до нужного элемента.
Это линейный процесс, в худшем случае требует пройти половину списка — O(n/2).


Ставь 👍 если знал ответ, 🔥 если нет
Забирай 📚 Базу знаний
Please open Telegram to view this post
VIEW IN TELEGRAM
👍7💊4



tgoop.com/easy_java_ru/1957
Create:
Last Update:

🤔 Как устроена операция get в LinkedList?

Метод get(index) в LinkedList:
- начинает обход с головы или с хвоста (в зависимости от индекса),
- проходит по указателям (prev/next) пока не дойдёт до нужного элемента.
Это линейный процесс, в худшем случае требует пройти половину списка — O(n/2).


Ставь 👍 если знал ответ, 🔥 если нет
Забирай 📚 Базу знаний

BY Java | Вопросы собесов


Share with your friend now:
tgoop.com/easy_java_ru/1957

View MORE
Open in Telegram


Telegram News

Date: |

The best encrypted messaging apps The visual aspect of channels is very critical. In fact, design is the first thing that a potential subscriber pays attention to, even though unconsciously. Channel login must contain 5-32 characters Hashtags are a fast way to find the correct information on social media. To put your content out there, be sure to add hashtags to each post. We have two intelligent tips to give you: 4How to customize a Telegram channel?
from us


Telegram Java | Вопросы собесов
FROM American