@greghogg5: Avoid This Coding Interview Mistake!! | Stacks, Queues & Deques #leetcode #programming #coding #codinginterview #faang

Greg Hogg
Greg Hogg
Open In TikTok:
Region: CA
Tuesday 16 January 2024 15:11:56 GMT
50976
2052
29
16

Music

Download

Comments

valentyn_mudryk
Valentyn Mudryk :
So, do not implement anything. Just import. That makes sense. But not for the coding interview.
2024-01-16 15:29:25
96
aidy_uk
Aidy :
Quite sure if ur asked to do a queue or stack in a coding interview u can't just import a solution someone else wrote. They want to see how YOU do it
2024-01-17 18:30:45
2
malooski
Malooski :
Fun fact. It basically doesn’t matter anymore except for huge arrays for most languages if they don’t have a dedicated container.
2024-01-21 16:23:08
0
user5710082314363
John🍻 :
Does no-one use LIFO and FIFO anymore? The Queue class in .NET is used for FIFO and there's Stack for LIFO.
2024-01-16 16:10:34
0
2girls1idiot
Aren :
I just make my own using a doubly linked list
2024-01-17 08:55:03
0
symnsez
SymnSez :
Used deque before.. I was storing bit streams, and needed to section off the stack when preambles appeared.. very fast.
2024-01-16 17:22:58
0
juamezlew
Juamez Lew :
um akchtually 🤓 queue is actually usually implemented with a circular array and table doubling, but usually taught as a linked list
2024-01-17 11:29:03
2
avyayk
avyay :
I didn’t know pop(0) was o(n), thanks. Always wondered why bother I’d bother with a deque
2024-01-18 08:02:00
0
tictactofu
RK :
what if you just teach everyone how to do linked list implementation of stack deques queues etc
2024-01-16 17:39:22
1
kakeergodt2
kake :
please dont use linked list for this, use some sort of circular buffer / array
2024-03-22 12:36:10
0
ayyedeezy
ayyedeezy :
Classic… just import
2024-02-07 09:45:30
0
andynelson817
Andy Nelson :
I had no clue 😔
2024-01-20 22:32:16
0
lucsoft_
lucsoft :
Ah yes the millions entries queue where this still doesn’t matter.
2024-01-21 22:31:55
0
isholaazeez
Oh Lala :
I thought in queue you prepend not append ?
2024-01-16 15:24:02
2
bigbadh
Iamgay6767 :
@Jackmorton120308
2024-01-16 16:38:33
1
tym.travel
VVEK :
🔥🔥🔥
2024-01-16 21:58:03
0
greghogg5
Greg Hogg :
Thank you so much for watching the video! Btw, I offer tutoring sessions for coding interviews, please email [email protected] if you're interested. Cheers!
2024-01-16 15:42:13
0
To see more videos from user @greghogg5, please go to the Tikwm homepage.

Other Videos


About