- 11
- 2 851
Nick Esqueda
Приєднався 19 лют 2021
Selection Sort | CODE WALKTHROUGH - In-place, Out-of-place
This is an in-depth, detailed line-by-line explanation of Selection Sort! We walk through every line of code and explain (visually) what is happening every step of the way to the final sorted array.
PREREQUISITES:
to get the most out of this video, you should
- be familiar with for/while loop mechanics.
- know how to index in to an array/list.
- be familiar with shifting elements around in an array.
This is a very important piece of code that may or may not be brought up during certain entry-level Software Engineering interviews. The code for Selection Sort contains some very fundamental knowledge, like element shifting in an array, and is a classic example of the O(n^2) Time Complexity group.
If I missed something or if you need more explanation, let me know in the comments and I'll reply back to you!!
PREREQUISITES:
to get the most out of this video, you should
- be familiar with for/while loop mechanics.
- know how to index in to an array/list.
- be familiar with shifting elements around in an array.
This is a very important piece of code that may or may not be brought up during certain entry-level Software Engineering interviews. The code for Selection Sort contains some very fundamental knowledge, like element shifting in an array, and is a classic example of the O(n^2) Time Complexity group.
If I missed something or if you need more explanation, let me know in the comments and I'll reply back to you!!
Переглядів: 70
Відео
Insertion Sort | CODE WALKTHROUGH - In-place, Out-of-place
Переглядів 43Рік тому
This is an in-depth, detailed line-by-line explanation of Insertion Sort! We walk through every line of code and explain (visually) what is happening at every step of the way to the final sorted array. PREREQUISITES: to get the most out of this video, you should - know how to iterate through a list of numbers. - know how to index in to an array/list. - be familiar with shifting elements around ...
Bubble Sort | CODE WALKTHROUGH
Переглядів 116Рік тому
This is an in-depth, detailed line-by-line explanation of Bubble Sort! We walk through every line of code and explain (visually) what is happening at every step of the way to the final sorted array. PREREQUISITES: to get the most out of this video, you should - know how to iterate through a list of numbers. - know how to index in to an array/list. - be familiar with swapping elements in an arra...
Two Sum | SOLUTION WALKTHROUGH - Hashmap
Переглядів 92Рік тому
LINK TO PROBLEM: leetcode.com/problems/two-sum/ This is an in-depth, detailed line-by-line explanation of two solutions for the "Two Sum" problem on Leetcode. PREREQUISITES: to get the most out of this video, you should - know how to use a hashmap/dictionary. - know how to iterate through a list of numbers. We go over a solution using a hashmap to store the "compliment" to the number we have on...
Valid Anagram | SOLUTION WALKTHROUGH - Hashmap | Array
Переглядів 42Рік тому
LINK TO PROBLEM: leetcode.com/problems/valid-anagram/ This is an in-depth, detailed line-by-line explanation of two solutions for the "Valid Anagram" problem on Leetcode. PREREQUISITES: to get the most out of this video, you should - know how to use a hashmap. - be familiar with "fixed size" arrays. We go over a solution using two hashmaps, which I believe is the more important one to take to h...
Contains Duplicate | SOLUTION WALKTHROUGH - Set
Переглядів 31Рік тому
LINK TO PROBLEM: leetcode.com/problems/contains-duplicate/ hey!! we do a line-by-line walkthrough of the solution for "contains duplicate" in this video. we also talk a little bit about hashsets and why they're useful, and how integral they are to leetcode-style questions like this. let me know in the comments if you have any questions!!
Group Anagrams | SOLUTION WALKTHROUGH - Hashmap
Переглядів 178Рік тому
LINK TO PROBLEM: leetcode.com/problems/group-anagrams/ yo!!!! this one's a little bit interesting - we're using python tuples as keys to our dictionary/hashmap. along with that, we're using an array of length 26 to denote how many of each character are in a word. these are very useful ideas/tricks to remember for other leetcode problems. please let me know if you have any questions!!!
Pre-order, In-order, and Post-order Traversals - what's the difference?
Переглядів 43Рік тому
in this video, we talk about Depth First Search/Traversal, and how each of the traversals (in-order, pre-order, post-order) are actually just types of DFS. we walk through both with a drawing (as usual) to help understand what is ACTUALLY happening during each!!
Recursive Depth First Search on a Matrix | CODE WALKTHROUGH
Переглядів 1,8 тис.Рік тому
if you're familiar with iterative depth first search/traversal, then this video will help you get you up to speed with the recursive way of traversing a graph. we specifically walk through a DFS on a matrix graph, but the logic is applicable to any other representation of a graph. NOTE: i use the terms "depth first search" and "depth first traversal" interchangeably throughout the video, as you...
Fibonacci Series Explanation | CODE WALKTHROUGH
Переглядів 692 роки тому
this is a line-by-line walkthrough and explanation of the fibonacci function - both recursive and iterative (using tabulation)! we also draw out a diagram of code execution, just to get a visual of what's happening when the code runs. please let me know if you have any questions over the topic, i'd be glad to help!!
Sliding Window Maximum | SOLUTION WALKTHROUGH - Monotonic Queue
Переглядів 4072 роки тому
in this video, we do a line-by-line walkthrough of the monotonic decreasing queue solution to the "sliding window maximum" problem on leetcode. we talk a little bit about monotonic queues and how they can help us out in certain situations, like the one in this problem. please let me know if you have any clarifying questions regarding this video!!
Great one!
i like your detailed and slow-paced teaching style. it really helps me absorb every little detail and solidify my understanding. 👍👍
First
Dat hair doe
do you all prefer shorter videos with a few less details, or longer videos like this that are very detailed? let me know what you think!!
Bubble sort for the win :) very good simple explanation 10/10 do recommend!
thank you dude!!!! 👀😎
Good job with the videos Nick! Killing it man. How’s it been post grad of AA
yo thank you man!!! 😄it's been great!!! finally about to start a job, working with java 👀
@@nick_esqueda hell yeah bro congrats!!
did you have an easy enough time converting this to a different language? let me know if this was clear enough to help you do that!!
This dude right here is a GOAT!
CHARLES 👁 LMAO
@@nick_esqueda You know I had to.
how was the pacing on this video? would like to see more walkthrough examples, or was just 1 enough? let me know what y'all think!
sorry for the jacket noises, it was cold 😬lmao if you have any suggestions for a leetcode problem for me to cover, drop it below!! i'd love to help ya out 😁
Nick the goat 🐐 no cap! 🧢
if you're using java/javascript/whatever language, the alternative to the tuple is to turn the "pattern" array into a string! just make sure you separate each character count with a delimiter, like "#".
i actually got asked a small variation of this question during an interview yesterday! the interviewer had me use a "fake" Binary Search Tree as the data structure, but i was able to bring up this monotonic queue approach for discussion after coding it out, and i'm sure that got me some brownie points lol. just wanted to come back and point that out!!
Super helpful walkthrough! I feel like a lot of recursion videos rush through the explanation of checking neighbors and where calls return, but this was smooth and descriptive. The different colors also helped a lot to visualize where we were at, from visiting one cell to another, and returning all the way back up the stack with the green. I've struggled to understand this for a while now and this was very helpful! Thank you
thank you so much man!!! 😄 i've noticed that with a lot of videos as well - that's essentially why i wanted to create this channel!! i like thinking through things very explicitly and step-by-step in my head, and i felt like walking through it that way would be useful for other people too (even if it takes a while lol). so glad to hear that it finally cleared some things up for you - that makes me super happy!! 😄
you can see me realize at 4:35 that i copy-pasted to make the other functions and forgot to move the lines LMAO. oopsie :-) let me know in the comments if y'all have any questions about the video!!!
Subscribed sir! Keep up the good work!
boy have I missed you!!!
I MISS YOU GUYS SO MUCH 😭 can your whole cohort just like, come back to mod 2? bls
can I get the Kahoot link? Asking for Nick A.
B R U V
My god Nick this was such a good walkthrough! Teaching seems so natural for you!
awesome breakdown thank you
ali pog 😎😎😎😎
let me know if you have any clarifying questions!! 😄 me (or someone else, if you want to pitch in!) will try to answer your question ASAP. if you're having a hard time reaching me, hit me up on LinkedIn 😎 LINKEDIN: www.linkedin.com/in/nick-esqueda/
no way
i thought hittin' y'all with that post-mod2 material might be kinda nice 😎😎😎 lol
Loved it, but when does my waiter talk to the kitchen?
B R U H W H Y
Best explanation! Best TA! NICK!!
LFG!!!
Hello Ms. Lacey. Best, - Nick
Nick! Best TA
still no carpet i see... where's the gofundme link?
LMFAO the carpet is STILL at the store 😭😭😭😭
no carpet >
Subscribed
Evil Jair approves. Awesome video Nick!
Bruh..
lets gooooo!!
First subscriber :D
LMAO LESSGOOOOOOO!!!!