380. Insert Delete GetRandom O(1)

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

Рекомендации по теме
Комментарии
Автор

Great Explanation Ma'am👌, Tonight i felt that i want to learn something new concept and then i opened the "Tech adora by Nivedita" channel and watch your previous uploaded video whose problem that i don't know how to solve that.

bhautikhirapara
Автор

could u tell me that when we try to find anything in the map why u didn't use mp.find(val) == mp.end() ?

GeniuslyTensai
Автор

When there are many elements in the array, removing the elements who cause all elements to move to the previous place since we are copying to the previous elements position.. wouldn't that be O(N)?

vaibhavjain
Автор

i stuck in remove part i got it where i was wrong

code-a-mania
Автор

Thanks Nivedita, I have been watching your videos for the last 6 months. I must have to say your way of explaining things is really good. Can you share your other profiles like LinkedIn and instagram?

deveshkumar