Nick Esqueda
Nick Esqueda
  • 11
  • 2 851
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!!
Переглядів: 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!!

КОМЕНТАРІ

  • @chettrixrahul
    @chettrixrahul Рік тому

    Great one!

  • @Nelson-fw5ly
    @Nelson-fw5ly Рік тому

    i like your detailed and slow-paced teaching style. it really helps me absorb every little detail and solidify my understanding. 👍👍

  • @lacey8454
    @lacey8454 Рік тому

    First

  • @Charlie_8rown
    @Charlie_8rown Рік тому

    Dat hair doe

  • @nick_esqueda
    @nick_esqueda Рік тому

    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!!

  • @coolcoder182
    @coolcoder182 Рік тому

    Bubble sort for the win :) very good simple explanation 10/10 do recommend!

  • @Lurchstavo
    @Lurchstavo Рік тому

    Good job with the videos Nick! Killing it man. How’s it been post grad of AA

    • @nick_esqueda
      @nick_esqueda Рік тому

      yo thank you man!!! 😄it's been great!!! finally about to start a job, working with java 👀

    • @Lurchstavo
      @Lurchstavo Рік тому

      @@nick_esqueda hell yeah bro congrats!!

  • @nick_esqueda
    @nick_esqueda Рік тому

    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!!

  • @Charlie_8rown
    @Charlie_8rown Рік тому

    This dude right here is a GOAT!

  • @nick_esqueda
    @nick_esqueda Рік тому

    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!

  • @lacey8454
    @lacey8454 Рік тому

  • @nick_esqueda
    @nick_esqueda Рік тому

    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 😁

  • @sadiqahmed5672
    @sadiqahmed5672 2 роки тому

    Nick the goat 🐐 no cap! 🧢

  • @nick_esqueda
    @nick_esqueda 2 роки тому

    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 "#".

  • @nick_esqueda
    @nick_esqueda 2 роки тому

    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!!

  • @JChamberslam
    @JChamberslam 2 роки тому

    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

    • @nick_esqueda
      @nick_esqueda 2 роки тому

      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!! 😄

  • @nick_esqueda
    @nick_esqueda 2 роки тому

    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!!!

  • @momo_king3359
    @momo_king3359 2 роки тому

    Subscribed sir! Keep up the good work!

  • @cindyg7449
    @cindyg7449 2 роки тому

    boy have I missed you!!!

    • @nick_esqueda
      @nick_esqueda 2 роки тому

      I MISS YOU GUYS SO MUCH 😭 can your whole cohort just like, come back to mod 2? bls

  • @andreagreen9308
    @andreagreen9308 2 роки тому

    can I get the Kahoot link? Asking for Nick A.

  • @jaircarbajal1220
    @jaircarbajal1220 2 роки тому

    My god Nick this was such a good walkthrough! Teaching seems so natural for you!

  • @alinaqvi8148
    @alinaqvi8148 2 роки тому

    awesome breakdown thank you

  • @nick_esqueda
    @nick_esqueda 2 роки тому

    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/

  • @brandonarmstrong4333
    @brandonarmstrong4333 2 роки тому

    no way

    • @nick_esqueda
      @nick_esqueda 2 роки тому

      i thought hittin' y'all with that post-mod2 material might be kinda nice 😎😎😎 lol

  • @alinaqvi8148
    @alinaqvi8148 2 роки тому

    Loved it, but when does my waiter talk to the kitchen?

  • @samysolsa11
    @samysolsa11 2 роки тому

    Best explanation! Best TA! NICK!!

  • @lacey8454
    @lacey8454 2 роки тому

    LFG!!!

  • @Lurchstavo
    @Lurchstavo 2 роки тому

    Nick! Best TA

  • @ariarot
    @ariarot 2 роки тому

    still no carpet i see... where's the gofundme link?

  • @mattkleinsmith364
    @mattkleinsmith364 2 роки тому

    Subscribed

  • @jaircarbajal1220
    @jaircarbajal1220 2 роки тому

    Evil Jair approves. Awesome video Nick!

  • @abelbrianvil482
    @abelbrianvil482 2 роки тому

    Bruh..

  • @brandonarmstrong4333
    @brandonarmstrong4333 2 роки тому

    lets gooooo!!

  • @harisahmed2692
    @harisahmed2692 2 роки тому

    First subscriber :D