Тёмный
Michael Sambol
Michael Sambol
Michael Sambol
Подписаться
Data structures and algorithms in X minutes.

Howdy, I'm Mike. I'm a software engineer from the United States. I make concise computer science tutorials to help you learn, review for exams, and prep for interviews.

My background: I have a bachelor's and master's degree in computer science from Georgia Tech. I'm a principal software engineer for Workday, and I previously worked for AWS, Intuit, and IBM.
Analyzing algorithms in 6 minutes - Intro
6:29
5 месяцев назад
Binary search in 4 minutes
4:00
Год назад
B-trees in 4 minutes - Search
4:07
Год назад
B-trees in 4 minutes - Intro
3:57
Год назад
Heaps in 6 minutes - Methods
5:56
Год назад
Heaps in 3 minutes - Intro
3:29
Год назад
Hash tables in 4 minutes
3:52
2 года назад
Queues in 3 minutes
3:10
2 года назад
Stacks in 3 minutes
2:59
2 года назад
Linked lists in 4 minutes
4:22
2 года назад
Depth-first search in 4 minutes
4:01
2 года назад
Breadth-first search in 4 minutes
3:59
2 года назад
Big-O notation in 5 minutes
5:13
7 лет назад
Комментарии
@omersakkar5670
@omersakkar5670 Час назад
Thanks for the explination. I wanted to point out that you can right much more effecient code: for i = 0 to n-1 for j = 0 to n-i-2 if array[j] > array[j+1] swap(array[j], array[j+1])
@aiaiaiyourlittlebutterfly.mp4
Sir, you do not know how much you have helped me, a ROOKIE in computer science this semester. I am so grateful to you. THANK YOU SIR!!
@vasilisxentes
@vasilisxentes День назад
what my university couldnt teach me in 6 months this guy did in 4 minutes well done
@vasilisxentes
@vasilisxentes День назад
I got passed the exam thank you so much
@koustavblancos934
@koustavblancos934 2 дня назад
This guy is a legend ❤
@amongtoyszone9906
@amongtoyszone9906 2 дня назад
Thank you!!
@aineyuuki
@aineyuuki 2 дня назад
in case 3, you violate the rules for every path from a node to an abitary leave, number of nodes remains the same, which is 2 if we start from A to C (C and his null), and 1 from A to Z (his null only)
@MichaelSambol
@MichaelSambol День назад
See the pinned comment. These are partial fixes (I should have said that in the video). The example video shows full fixes. Sorry for any confusion!
@jrumac
@jrumac 2 дня назад
you got me through my undergrad DS&A course and now i've come back to you for interview prep. thank you!!!
@MichaelSambol
@MichaelSambol 2 дня назад
Crush it my dude
@rongitmukherjee
@rongitmukherjee 2 дня назад
Best explanation I've found till now
@AliIlhanThani
@AliIlhanThani 3 дня назад
for 3:30 isnt it violating the rule because of two consecutive roots?
@lejuan9002
@lejuan9002 4 дня назад
Bro demolished universities with a 2-minutes video
@palmossi
@palmossi 4 дня назад
1,794,000th view!!!!! :D
@MichaelSambol
@MichaelSambol 3 дня назад
wild
@palmossi
@palmossi 3 дня назад
@@MichaelSambol oh hello there!
@KBoxx
@KBoxx 5 дней назад
He said first in first out and queue but is demonstrating a last in first out stack data structure.
@MichaelSambol
@MichaelSambol 4 дня назад
It's FIFO :)
@simpleman-fd3rb
@simpleman-fd3rb 5 дней назад
Thank you so mụch! Your video is very helpful and easy to understand 🥰
@awesomeclips8253
@awesomeclips8253 5 дней назад
i learned more here than i did in my cs classes
@vishalsubhanje490
@vishalsubhanje490 5 дней назад
thank you sir give me ur no i will pay 100 bucks
@anasalnablsi3623
@anasalnablsi3623 5 дней назад
honestly i understand it perfectly in that brief explanation many thanks to you
@littlelilly7480
@littlelilly7480 5 дней назад
These videos are gem, I was searching for big theta noations but unfortunately i couldnt find it:(. THANKYOU broo u saving lives
@orionthegreat7858
@orionthegreat7858 6 дней назад
That’s a pretty slow quicksort
@-_art0m_-632
@-_art0m_-632 6 дней назад
I dont get the part where we get left and right indexes in heapify. Why arent they l = 2*i + 1 and r = 2*1 + 2?
@TheRomanianWolf
@TheRomanianWolf 6 дней назад
At 1:31 the leafes 9, 13, 23 are NOT black
@Hero.S
@Hero.S 7 дней назад
hmmmm so you say to iterate through the arrays you want to get and compare to the previous index by doing i - 1 you want to know that the index exists so you compare that its greater than 0 then you want to check if the previous is greater than the current and if so then you have to swap afterwards you would want to shift the elements to the right and finally insert the current element into the correct position? So something like this idk and i = 2 as we are comparing the previous and there is no previous of the first index (or 1 if your language supports 0 as an index) local arr = {7,9,4,0,2}; function sort(arr) for i = 2, #arr do local current = arr[i]; local j = i - 1; while(j > 0 and arr[j] > current)do arr[j + 1] = arr[j]; j = j - 1; end arr[j + 1] = current; end end I think its cool that the more I learn, the easier the visualization of imagery and words can be translated into syntax
@stan-xd2pr
@stan-xd2pr 7 дней назад
very clear, thank you sir
@nikhilgaonkar1320
@nikhilgaonkar1320 7 дней назад
thanks
@MayankJairaj
@MayankJairaj 7 дней назад
Floyd’s Cycle Finding Algorithm // Hare-Tortoise algorithm plz
@audreystucke
@audreystucke 8 дней назад
Why else if x < 0, we have the O(logn)?
@womma2820
@womma2820 8 дней назад
Great video, we dont have professors like this in UNI, thanks mate.
@channelname9468
@channelname9468 8 дней назад
great video bro, you explained this so much better and in like 1/30th the time of my teacher lmao
@MichaelSambol
@MichaelSambol 8 дней назад
thanks man!
@Therustyfountain
@Therustyfountain 8 дней назад
Studying for my Data Structures and Analysis of Algorithms midterm, thanks for your help! Great video, very easy to understand explanation.
@riancmd
@riancmd 9 дней назад
Really concise and straight to the point. I'm reviewing for my exam today so this helped me a lot! Thank you.
@alandarrin
@alandarrin 10 дней назад
old vid, but still useful ❤❤❤
@nicoreyesruiz
@nicoreyesruiz 10 дней назад
Gracias, saludos desde Chile
@MichaelSambol
@MichaelSambol 9 дней назад
Estoy aprendiendo español 🫡
@dna3361
@dna3361 10 дней назад
Bubble sort -> Easy but inefficient
@navsharankaur
@navsharankaur 10 дней назад
I love you
@mechtorious
@mechtorious 11 дней назад
If we drop the constants, like 3 * O(1) and interpret it as O(1), why is N * O(1) is O(N)? Doesnt it mean that it is not for 3, even if it is a 1000, it is still a constant and if it is 1000 * O(N) we can still drop the 1000? Can someone please explain?
@MichaelSambol
@MichaelSambol 11 дней назад
See the full playlist for more details: ru-vid.com/group/PL9xmBV_5YoZMxejjIyFHWa-4nKg6sdoIv
@Kaira_edits8
@Kaira_edits8 11 дней назад
I felt so stressed for the exam coming in three days, and now I found your channel explaining everything so simply, thank you ❤
@MichaelSambol
@MichaelSambol 11 дней назад
welcome! crush it
@giovannimaltisotto4601
@giovannimaltisotto4601 11 дней назад
Hero!
@jaydentplays7485
@jaydentplays7485 11 дней назад
Still not as powerful as Turbosort. Worst case: n. Average case: n. scratch.mit.edu/projects/1038198314/editor/
@n.h.son1902
@n.h.son1902 12 дней назад
I've got a dumb question which is why is the running time of build_max_heap O(n), n = len(a)? (refer to 5:29). In my opinion, the for loop is O(n) and inside each for loop is O(logn) to call max_heapify so in total, the time complexity would be O(nlogn), right?
@rishavjain5087
@rishavjain5087 12 дней назад
that's bubble sort (from cs50) isn't it?
@chujsmukoj
@chujsmukoj 13 дней назад
u tebia uiebanskoe derevo griazni goi
@Robin-Dabank696
@Robin-Dabank696 14 дней назад
Wait in (nlogn), is the log in base ten or base e?
@vaibhavsrivastva1253
@vaibhavsrivastva1253 15 дней назад
May god bless you, and your family!
@bysavvyway
@bysavvyway 15 дней назад
I think you made a mistake because we have to choose any one of the nodes which have the minimum value after the visited node and we cannot see the visited node again until we visited all the nodes
@Sulerhy
@Sulerhy 16 дней назад
this is absolutely the best explanation for me who does not come from CS school. Thank you, now I can beat them lmao
@zukakiarimota455
@zukakiarimota455 16 дней назад
Arigato ❤
@livea404life
@livea404life 16 дней назад
Thx! You helped me passing algorithm course exam last year, and I believe this video can help me passing the network course exam again!
@memeingthroughenglish7221
@memeingthroughenglish7221 16 дней назад
I love your videos so much! Great illustrations, great explanations, many topics, and I can learn something completely new in under 5 minutes!
@MichaelSambol
@MichaelSambol 15 дней назад
Thank you!
@MohammadKamran-mo8pj
@MohammadKamran-mo8pj 16 дней назад
Thank you
@user-hj2go1ur8i
@user-hj2go1ur8i 17 дней назад
thank you bro, you are the real man
@user-xu8pd5rs6s
@user-xu8pd5rs6s 17 дней назад
I have watched your all videos several times whenever i need to review the algorithm, " You Are Definitely A God Of Algorithm"