The Last Algorithms Course You'll Need by ThePrimeagen | Preview

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ • 261

  • @keithprice1950
    @keithprice1950 Рік тому +2669

    It's a bit weird seeing him so calm and serious.

    • @peanutcelery
      @peanutcelery Рік тому +84

      Right? I didn’t even recognize him in the intro

    • @MattRose30000
      @MattRose30000 Рік тому +202

      I wanna see a PrimeReacts to this video

    • @sunraiii
      @sunraiii Рік тому +59

      But at times you can tell that he can't contain the chaotic engery :D:D

    • @rahulspoudel
      @rahulspoudel Рік тому +50

      Primegen in some alternate universe

    • @pointer333
      @pointer333 Рік тому +2

      100% hahah

  • @RyanMartinRAM
    @RyanMartinRAM Рік тому +538

    Prime is one of the most inspirational programmers I've ever had the privilege of interacting with.

    • @mikelk124
      @mikelk124 Рік тому +10

      I'd say as a teacher he has the tendency of all talented ppl in their fields and has a little trouble relating to the noob, but comparing these lectures to the ones on the same topics in uni--pretty fascinating. Primeagen is a worse teacher but an overall much more interesting speaker. X factor.

  • @mabillama
    @mabillama Рік тому +293

    The longer the video goes, the closer he gets to his streaming persona!
    Great instructor

  • @shm236
    @shm236 Рік тому +71

    I see ThePrimeagen in his hoodie but I hear Dr. Prime. He's the CS prof I wish I had.

  • @decoyslois
    @decoyslois Рік тому +64

    Describing big O as ‘categorisation’ is simultaneously so obvious and so immensely helpful. I’m going to use that when explaining it to others, thank you.

  • @toup0
    @toup0 Рік тому +49

    1:48 He only knows performance. Opposite of performance is not in his vocabulary :D That's how we know him. Keep it up Prime!

    • @es7729
      @es7729 8 місяців тому

      Good one 🤣🤣

  • @jaydeep-p
    @jaydeep-p Рік тому +93

    Sounds like if the naughty kid had to give a corporate presentation.

  • @scoutiano4441
    @scoutiano4441 Рік тому +182

    I kept thinking this is a meme and it's gonna go south at any point

  • @rand0mtv660
    @rand0mtv660 Рік тому +38

    I love that he is staying true to himself and wears a hoodie.

  • @gregorywpower
    @gregorywpower Рік тому +217

    Unfortunately not as joyfully unhinged as he typically is. It’s ludicrously informative and ThePrimeagen’s teaching style is great.

  • @Brainiac5
    @Brainiac5 Рік тому +112

    Imagine if he taught classes the way he did with his streams 😆was crazy that I was hoping for that haha

    • @noisycarlos
      @noisycarlos Рік тому +16

      "I teach on Windows!! I teach on Windows... Shut up!!"

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

      Me too 🙂

    • @liu-river
      @liu-river Рік тому +3

      It's still him, just a diluted version, I still love it.

  • @m1kr0kosmos
    @m1kr0kosmos Рік тому +16

    Oh snap I think this is the last algorithms course I will ever need!

  • @quantumastrologer5599
    @quantumastrologer5599 Рік тому +20

    edit: I might not like all his content but this guy among a few others probably inspired a generation worth of people to try programming.
    Also: vanilla i3, so based

    • @RictorScale
      @RictorScale Рік тому +2

      Definitely inspired me to learn vim 2 years ago :D

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

      vanilla i3 is unusable, gotta change those motions to vim keys

  • @TomoFromEarth
    @TomoFromEarth Рік тому +41

    Such a pleasure to listen to people who are great at what they do explain topics like this. 🤙🏼👍🏼

  • @prerit714
    @prerit714 Рік тому +14

    CHAD i3 user with neovim greatness
    great to see prime in prime

  • @marwanfikrat7716
    @marwanfikrat7716 Рік тому +15

    Big fan of prime and this preview sold it to me. Will be taking this course, thanks for sharing and thanks to prime for doing this

  • @andreasschau4215
    @andreasschau4215 Рік тому +13

    Not even Neo could have learned this as blazingly fast as i just did!

  • @mi_zot
    @mi_zot Рік тому +5

    I cannot believe you have this course up on your website for free

  • @MakeItStik
    @MakeItStik 11 місяців тому +4

    Frontend Masters are the only ones who could control his chi

  • @sebastiaanstoffels7565
    @sebastiaanstoffels7565 Рік тому +30

    I feel this could use more coconut oil

  • @skypuff
    @skypuff Рік тому +3

    It is indeed the last one you'll need 🙏🔥. It's a really good course.

  • @RootsterAnon
    @RootsterAnon Рік тому +2

    this man... give this man a cookie!

  • @vaayuo
    @vaayuo Рік тому +3

    Its weird seeing prime so calm and well adjusted

  • @towatch
    @towatch Рік тому +3

    noway! this will be incredible

  • @snivels
    @snivels Рік тому +12

    You can actually use javascript maps to lookup something unique by the object reference. Just set the key to the object in question, and the unique value to the value

    • @tourdesource
      @tourdesource Рік тому +4

      Do you even work at NETFLIX? Yeah, didn't think so.

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

      @@tourdesource what has that got to do with anything?

    • @tourdesource
      @tourdesource Рік тому +8

      ​@@snivels It's a joke related to the instructor, not really worth explaining. No disrespect meant.

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

      ​@@snivels You're absolutely right about map accepting objects as unique keys, btw.

    • @snivels
      @snivels Рік тому +8

      @@tourdesource haha sorry, hard to read humour these days on the net. I see what you meant now, I'm reading what you said in Primeagen's voice 😂

  • @alamba78
    @alamba78 Рік тому +7

    If Will Sentance did an algorithms course, it would be 🔥. Prime's bubble sort lecture probably could have been smoother. But, I'm sure it'll pick up after that.

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

      Isn't it a mistake? He's checking j vs j not j vs i. Lol

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

      ⁠​⁠@@zwillx3953while his method of explaining is a bit confusing, it actually works because here he is using i to keep track of the sorted element and j and j+1 are doing the comparison and swap. So, when i = 0, you go into the inner loop of j and compare that first element with every subsequent element and keep bubbling the higher value to the end. Then i increments by 1 which takes the sorted element at the end of the array out of the comparison and swap being done in the inner j loop since that is already sorted from the previous iteration and again you go into the inner j loop and do the comparison and swap all the way through bubbling the higher value to the end. This continues till you satisfy the condition of the outer i loop. Hope it makes sense. Best thing is to write it down with a sample unsorted array of numbers and manually walk through the algorithm and writing the new array at each step. You will understand it better that way.

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

      @@zwillx3953can I please have your logins to the course…it’s quite expensive from my part of the world.

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

      ​@zwillx3953 it's right. You probably mean selection sort

  • @tayebeckford5014
    @tayebeckford5014 Рік тому +4

    Prime would be the coolest teacher ever

  • @kevinb1594
    @kevinb1594 Рік тому +7

    As far as unique values in Javascript, isn't that what Symbols are for?

    • @strager_
      @strager_ Рік тому +1

      I think you could use a Symbol to store your own object ID. Good idea!
      One minor problem is that this consumes memory. ☹

  • @GOTHICforLIFE1
    @GOTHICforLIFE1 Рік тому +4

    I love that he is cursed with his coding speed.
    "You just have to write it
    * Proceeds to do his vim magic *
    Talking to a class of students;
    "Alright hopefully you've written that down"
    No.. Not everyone is a vim ninja xD

  • @nad9969
    @nad9969 Рік тому +1

    Loving the system 76 lappy running PopOS!

  • @Владислав-е6щ9ъ
    @Владислав-е6щ9ъ Рік тому +6

    But are any of those algorithms blazingly fast?

  • @craigdanielmaceacher
    @craigdanielmaceacher Рік тому +13

    I scanned ahead to see if they made him use VS Code for this 😂

  • @Frawkesish
    @Frawkesish 11 місяців тому

    Right on "queue" UA-cam algorithm... 😅 I have been watching a lot of his videos as I'm learning to program in hopes that I'll slowly start understanding wth he's talking about and now I can learn it directly from him..

  • @cmdaltctr
    @cmdaltctr Рік тому +6

    This is real course right? I am confuse. He is very calm. The backgound music too.

    • @mycommentmyopinion
      @mycommentmyopinion 9 місяців тому

      Yes, it's a preview of his algorithm course on frontendmasters

  • @jugzster
    @jugzster Рік тому +3

    Not even one mention of Juh-SON and JSML?
    Still love the informative and entertaining video from the Prime himself!

  • @HyperFocusMarshmallow
    @HyperFocusMarshmallow 11 місяців тому +2

    Saying that Big Oh is a way to categorize programs is probably quite useful for programmers.
    Might be worth noting that it’s a quite simple mathematical concept defined in terms of a limit.
    It’s very useful for describing asymptotic behavior of functions generally, not just in programming.

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

    My boy Prime! Love it!

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

    This is what professional voice-over sounds like.

  • @chaknithbin6322
    @chaknithbin6322 3 місяці тому

    I have a question on the the video 'Implementing Two Crystal Balls.'
    If we do sqrt(n), it seems like there will be instances where we fail to find it?
    For example, 1-1000 floors. Then we try at 100 and it breaks.
    With 1 crystal we do 1-100. Then we try at 10 and it breaks.
    Now we have 1-10 that we are not sure of. Will this invalidate the whole idea?

  • @duanebuell7055
    @duanebuell7055 Рік тому +1

    Alright. You sold me. I'll buy this course... for free. Thanks!

  • @Abu_Shawarib
    @Abu_Shawarib Рік тому +1

    I just finished the course, pretty nice and short. Although I had a similar course in collage, we didn't delve into few things like heaps and hash maps.

  • @aBradApple
    @aBradApple 9 місяців тому

    Just started programming. The amount of content I had to research to understand this lecture took me over an hour of reading and another hour of messing around in the editor to feel comfortable. Still don't get why .hasOwnProperty does not satisfy the consistent hash argument, but the lessons I've learned from rewatching this a couple times have me asking a lot of questions about everything I write now.

  • @tufflax
    @tufflax 11 місяців тому +1

    4:18 O(2N) and O(N) is the same, so it's wrong to say "It's not O(2N), it's not that at all".

  • @Thundechile
    @Thundechile 11 місяців тому

    Prime should do all his videos like this.

  • @nikkehtine
    @nikkehtine Рік тому +7

    Watching his videos for so long where he's joking and yelling so much, and then hearing him dead serious, is the best way to show what cognitive dissonance feels like

  • @youtindia
    @youtindia Рік тому +7

    I can't take him seriously without him flipping the hell out within 2-3 minutes of a video.

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

    It would be great if portions of each video were available even if it was 1-3 minutes of each. The reason I say this is because I usually use that as my "floober doober" test to see whether the video will be cohesive, I'll be able to follow it, or if it will be floober doober material. I expect Prima to have pristine content, but I also don't know if I'd be able to digest that content. Most sites offer a free trial but really what I'm looking to do is see how much of Frontend Masters would stick if I subscribed.

  • @Anonim27121996
    @Anonim27121996 Рік тому +3

    Looks like a great course!

  • @w00td00t
    @w00td00t Рік тому +2

    He gives me the same feeling i get when I see my gta online character in a cutscene

  • @gracepal1
    @gracepal1 Рік тому +1

    OMG this is AWESOME. Thank you! BTW folks, at least of of today 3/27 this course is FREE?!

  • @JT-mr3db
    @JT-mr3db Рік тому

    Kept waiting for.. “Gotem”!

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

    the fact he's so happy and calm is truly scary to me

  • @boredomsoup
    @boredomsoup Рік тому +2

    Always wanted to study data structures from Dr.Disrespect

  • @arpandutta3591
    @arpandutta3591 Рік тому +5

    So he didnt diss VS code?
    Man this feels like he trolled us

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

    Yeah imma need this

  • @vitalyl1327
    @vitalyl1327 Рік тому +8

    Cache locality enters the chat: now, forget everything you've just learned!

    • @tourdesource
      @tourdesource Рік тому +1

      Cold hard cache rules the world.

  • @JohnSmith-op7ls
    @JohnSmith-op7ls 4 місяці тому +1

    You know you’re only here because you’re interview prepping and know you’ll never actually need to code any of these algos, ever.

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

    wot. is this for real? great break down of big o and very smart to introduce that concept early.

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

      whoa, actually registered and this is sick. I love how you made fun of javascript in the beginning of the video because I am a new learner and java paladin.

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

      As a level 1 java paladin these videos do not disappoint. All the subtle jabs at javascript muwahaha. I never thought Id be marathoning videos on datastructures FOR FUN but here I am. Thank you

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

    What about dynamic programming? Shouldn't that be in an algorithms course?

  • @BusinessWolf1
    @BusinessWolf1 Рік тому +2

    I got through 1/3 of this course in a day and then had a fried brain. 10/10

  • @techlifejournal
    @techlifejournal Рік тому +3

    It is weird why he is so calm 😂

  • @erickmoya1401
    @erickmoya1401 Рік тому +4

    This is AI, this man cannot spend 3 minutes without screaming.

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

    Algo's are cool and all, but what keeb?

  • @Brlitzkreig
    @Brlitzkreig 11 місяців тому

    So relatable

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

    Whats the keyboard he’s using?

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

    About the second example of O(n) with the two loops, aren't those optimised by the compiler and essentially run together, so from an execution pov that is O(n) anyway?

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

      how are they optimized and run together? what if the input of one loop relies on the result of another loop?

    • @Jake-mp7ex
      @Jake-mp7ex Рік тому

      No because time complexity isn't about concrete implementation. You purely look at it in terms of pseudocode, and count the "steps".
      He's actually making it more confusing by using real code, so you asked a fair question.
      It's also worth noting that big O refers to the maximum growth. Eg "grows no faster than, or worst case". Theres also big omega: "grows no slower than, or best case" and big theta
      The whole thing is kinda explained poorly. It's really not much different to describing the growth rate of math functions. The O part just means "upper bound of"

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

    For the bubble swap, can't you just do...
    arr = arr.sort((a, b) => a - b);

    • @gryg666
      @gryg666 Рік тому +2

      You can, but he explains how the sort function is written.

  • @yogxoth1959
    @yogxoth1959 Рік тому +8

    Is the course really for free?? Seems too good to be true!

    • @FrontendMasters
      @FrontendMasters  Рік тому +16

      Yep! The full course is here, and it is completely free forever! frontendmasters.com/courses/algorithms/? Only email is required.

    • @yogxoth1959
      @yogxoth1959 Рік тому +2

      @@FrontendMasters I signed up. Thanks a lot for this!

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

      @@FrontendMasters Got this course a long while back, enjoyed it a lot. Thank you and Prime for putting out such a great course!

  • @dave6012
    @dave6012 11 місяців тому +2

    Uhh, this is not the “last you’ll ever need” it’s more like a basic introduction where several followup lessons would be needed to actually be good at algorithms. Given prime’s seniority level, the name of the channel and the name of the course, I actually expected this to be an advanced course. They should rename this video to “introduction to data structures and algorithms” and I wouldn’t have a word of criticism.

    • @xdmeister
      @xdmeister 11 місяців тому

      I would barely even call this an introduction, this is more like a small bite size sample of an introduction to basic algorithms and data structures. I'm sure the title generated a lot of clicks tho lol.

    • @andrean40
      @andrean40 6 місяців тому

      *You guys do know this is just the first video of the full course right?*

  • @ishaansharma654
    @ishaansharma654 11 місяців тому

    That intro scared me. Like frontend masters holding his family hostage 😅

  • @workingguy3166
    @workingguy3166 11 місяців тому

    Where the full course

  • @TheCarlosAlfaro
    @TheCarlosAlfaro Рік тому +1

    What laptop is he using?

  • @lvrsvid
    @lvrsvid 10 місяців тому

    Does anyone know the software he uses for his xppen?

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

    buttery, coconut oily smooth intro

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

    all i know is a for loop inside a for loop is very computationally expensive

  • @csanadtemesvari9251
    @csanadtemesvari9251 Рік тому +1

    He works at Netflix btw

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

    What language did you use in this course?

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

    Where can you find the slides used in this course?

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

      Everything is available on our website. This course is 100% free forever, only email is required: frontendmasters.com/courses/algorithms/

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

    Prime is the GOAT

  • @fuzzy-02
    @fuzzy-02 Рік тому

    If only my professors were like this.
    Loved the jokes

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

    I love that he is wearing the hood of the hoodie lmao

  • @mileniliev5247
    @mileniliev5247 11 місяців тому

    Cover Knuth's Dancing links and I'll sign up

  • @NGC1433
    @NGC1433 9 місяців тому

    My god, somebody please give Prime his Tankist helmet already!!!

  • @ThomasGiles
    @ThomasGiles Рік тому +1

    I think the maps thing broke my brain.

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

      It's hash map. Which generates key with a predefined function

  • @kabukitheater9046
    @kabukitheater9046 Рік тому +1

    where's the coconut oil?

  • @diego_s.i.7018
    @diego_s.i.7018 3 місяці тому

    "If you're in c++ you hack yourself" 6:13 LMAO

  • @ThomasGiles
    @ThomasGiles Рік тому +1

    Good ol' Mikey Bubbles.

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

      True story, I tried to post this joke a minute ago and it was so bad my laptop crashed.

  • @sabinbaral4132
    @sabinbaral4132 Рік тому +3

    Bro literally used personality no 5

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

    This feels ironic and i love it

  • @JairoDev2.0-yb4md
    @JairoDev2.0-yb4md Рік тому +2

    Wait, he works on Netflix??

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

    Wait, Rustagean has legs?

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

    This is not the onion but style of video looks very much that :D

  • @CadisDiEtrama000
    @CadisDiEtrama000 Рік тому +1

    Don't JS object actually have a unique id? I mean, they don't have it explicitely defined but it's the reason why you can't compare the same objects.
    E.g.
    let a = { name: "" }
    let b = { name: "" }
    let c = a
    a == b is false but a == c is true because it looks at their references in memory.

    • @NotesNNotes
      @NotesNNotes Рік тому +2

      objects are created as instances of a class or constructor function, each object is assigned a *reference* to a memory location where its properties and methods are stored // in JS this is a pointer that stores the memory address (with abstraction)

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

    is this course completely free? I saw the "get free access" button but, you know, is the whole course free for public?

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

      Yes, all that is required is an email address for full access on frontendmasters.com/trial/

  • @ALLSTARDECOURO2
    @ALLSTARDECOURO2 10 місяців тому +3

    why frontend masters website looks like crap?

    • @Amzodt
      @Amzodt 5 місяців тому

      True, i would have expected them to at least have a great frontend 😂

  • @ovidiuporfire1249
    @ovidiuporfire1249 Рік тому +1

    By the halfway point he’s starting to turn

  • @ckjdinnj
    @ckjdinnj 11 місяців тому

    1 minute in and I’m still waiting g for the punch-line.

  • @budgetarms
    @budgetarms Рік тому +2

    this is the last algorithms course I will need; I will need a lot more.
    These are only the pure basics of algorithms.

    • @FrontendMasters
      @FrontendMasters  Рік тому +2

      The full course is on our website for free here frontendmasters.com/trial/

  • @brendanwenzel
    @brendanwenzel Рік тому +1

    How did no one yell "Hell yeah I'm excited" when he asked that question after completing the first sorting algo? Lame crowd!

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

    for the life of me I dont understand the hoodie fixation