Insert Delete GetRandom O(1) - Leetcode 380 - Python

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


0:00 - Read the problem
1:30 - Drawing Explanation
8:32 - Coding Explanation

leetcode 380

#amazon #interview #python
Disclosure: Some of the links above may be affiliate links, from which I may earn a small commission.
Рекомендации по теме
Комментарии
Автор

Hey man, thank you so much for the videos. I was so glad to see one of the questions you covered in my interview, nailed it, then got the Amazon offer! Keep doing what you're doing!!

JKL
Автор

That moment when NeetCode has the video posted of the problem you're stuck on. I know you probably hear this a lot, but thank you so much. You are a lifesaver

z.hassan
Автор

man being at google u are so much consistent, quite remarkable. can u make a video on "work pressure" at google .

KaranSharma-ewio
Автор

I was asked this in a Bloomberg phone interview yesterday.

bumpin
Автор

Hey, wanted to thank you as I used your videos to practice before coding interviews and I did well and I got the job!, Thanks man! :D, I'll be sure to subscribe to your Patreon using money from my first paycheck.

protomanx
Автор

Hi...please make a video on Logic building and how to increase problem solving skill for beginners...! Using python.

amoghyelasangikar
Автор

Hey neetcode, just wanna add another "thank you" message to your stack. Thank you so much and it's been helping me a lot and you are really amazing and I hope to see more in the future!

julius
Автор

More tricky than what i figured at first sight ! Thanks for the video :)

numberonep
Автор

How to solve this problem on a locally installed python and run the test cases manually??

Ashasri-qv
Автор

Hey neet, great video as always! I watched your video on finally being employed the other day and I was curious about if you still plan on creating some videos on system design? I think you're one of the best educators on this platform and I would really love to see your take on the topic :)

hackysack
Автор

Thanks bro, your are the best of best i ever scene now days i always looking for your solution because you are explaining all the optimal solution

amalant
Автор

It was really a great explanation because it is how we would actually reach the optimal answer. You backtracked the thinking of a person trying to solve this problem first time.

shashankjoshi
Автор

what an explanation man, perfect !!! 🙌🙌🙌

pranavkulkarni
Автор

hey neetcode curious what you use to record your whiteboard. is it a desktop software or you do it on ipad

Dharmk
Автор

hey @NeetCode, I remember this question, the first time I saw the question is you asked in the mock interview to that meta intern youtuber I don't remember his name and I am sure he was rejected at the end of the interview.

kotachaitanya
Автор

I think it should be len(self.numList)-1 shouldn't it? Or you'll constantly have the wrong index

sugarjay.cherry
Автор

Thanks NeetCode! just want to say it actually won't work when removing the last item! changing line 20 and 21 will fix it.

sabaamanollahi
Автор

Feels like you were not feeling well while making this video as I am following yor videos for quite long time now.
We appreciate your efforts bro 🙂

pratikmhatre
Автор

every crud operation is O(1) in hashmap. so why we cant use hashmap in this question

sarojpaudel
Автор

Can't we just construct a basic hash set our selves? like using linear probing so we actually have a build-in index for elements.

bohanxu