CS50x 2024 - Lecture 5 - Data Structures

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.พ. 2025

ความคิดเห็น • 307

  • @evachen8623
    @evachen8623 ปีที่แล้ว +84

    I've watched CS50 2023 to get started with some concepts of CS and now cmoe back to 2024 from time to time to see David explainging some specifiec concepts when I bump into them when solving problems. Really honored to have David, CS50 series and the team. Many thanks.

  • @oskartrinh6001
    @oskartrinh6001 9 หลายเดือนก่อน +321

    Just finished watching lecture 5. Now it's time to watch it again like 3 more times. :D

    • @hezziacGames
      @hezziacGames 8 หลายเดือนก่อน +6

      Not too watch it for the 2nd time in a second 😂

    • @friedrichmyers
      @friedrichmyers 8 หลายเดือนก่อน +18

      No. Just watch it once and practice

    • @ZerubbabelT.
      @ZerubbabelT. 7 หลายเดือนก่อน +3

      I thought it was only me who do this
      😀

    • @ex4787
      @ex4787 7 หลายเดือนก่อน +13

      @@friedrichmyers *shrug* everyone has different learning styles, I don't replay the whole lecture, but I do like to replay a portion while I'm watching to make sure I can logically follow a concept before moving on to the next

    • @friedrichmyers
      @friedrichmyers 7 หลายเดือนก่อน

      @@ex4787 Just fuck off. I don't want to argue.

  • @abdullaharshed
    @abdullaharshed 5 หลายเดือนก่อน +33

    I already know these concepts still learned alot from the lecture, for those who are confused and do not understand the concepts take time to grab these concepts, watching the lecture in one sitting can be overwhelming, believe me this is the best as it gets in terms of explaination.

    • @freelance-writer
      @freelance-writer 5 หลายเดือนก่อน +4

      Yeah, when he asks "So, any questions?", I'm surprised that a hundred hands don't go up. 😆

    • @meer4h
      @meer4h 5 หลายเดือนก่อน +7

      @@freelance-writer i also feel like it's hard to think about the questions at that pace. for me at least, it takes me running through a specific section a few times before understanding it enough to even form a good question

    • @freelance-writer
      @freelance-writer 5 หลายเดือนก่อน +6

      @@meer4h I take notes and follow in VS Code while watching, so a 2-hour lecture lasts about 4-5 hours. :)

    • @thienvinaseco1450
      @thienvinaseco1450 3 หลายเดือนก่อน +1

      @@freelance-writer I think people still don't understand enough to ask questions.

  • @GenZ_01_
    @GenZ_01_ 6 หลายเดือนก่อน +26

    This is the first time I took an English online course and it’s simply great.
    I’m short of words. Thank you cs50 staff🙏🏽

  • @blessdarah1256
    @blessdarah1256 ปีที่แล้ว +15

    This was such a wondeful course. Well put and in very simple terms. If you already have a descent understanding of DSA and some C, it's going to be flawlessly easy to pull through the course.

  • @wsollers1
    @wsollers1 11 หลายเดือนก่อน +114

    As a seasoned developer, I use these videos to augment my son's curriculum. This is invaluable knowledge laid out in a clear and compelling way.

    • @Rodrigo_Pimenta
      @Rodrigo_Pimenta 9 หลายเดือนก่อน +5

      Can you elaborate? Why is it valuable to say on your curriculum that you whached the CS50 online course?

    • @ousseynoukone
      @ousseynoukone 9 หลายเดือนก่อน

      ​@@Rodrigo_Pimenta You'll receive a certificate at the end... A certificate that carries significant weight. CS50 is one of the top online courses for an introduction to CS.

    • @anshuraj4277
      @anshuraj4277 9 หลายเดือนก่อน +1

      Is there any Python DSA course U can recommend

    • @nohaidea
      @nohaidea 3 หลายเดือนก่อน

      @@anshuraj4277 there's a CS50P python class if you're interested.

  • @manuelCO89
    @manuelCO89 7 หลายเดือนก่อน +73

    This lesson and that one before are in my top 10 most difficult lessons of this CS50😅

    • @abdullahfarooq4770
      @abdullahfarooq4770 6 หลายเดือนก่อน +33

      i hope youre not just talking about cs50x because it has like 11 lectures in total so almost every lecture is in your top 10 most difficult lesson haha

    • @Ahmad-yi6d
      @Ahmad-yi6d 4 หลายเดือนก่อน

      ​​@@abdullahfarooq4770
      Great logic

    • @Hellmiauz
      @Hellmiauz 3 หลายเดือนก่อน +5

      @@abdullahfarooq4770 Algorithms, Memory and Data structures are the hardest in CS50X everything else is easier.

    • @abdullahfarooq4770
      @abdullahfarooq4770 3 หลายเดือนก่อน +4

      @@Hellmiauz yeah I completed cs50
      This week was the hardest 😭

  • @aftertwentea
    @aftertwentea ปีที่แล้ว +60

    This is it, the stumbling stone of CS50🎉🎉🎉

    • @villagerdude2989
      @villagerdude2989 11 หลายเดือนก่อน +2

      Fr 💀

    • @bassycounter
      @bassycounter 11 หลายเดือนก่อน

      What exactly do you mean by “stumbling”

    • @misterguy
      @misterguy 11 หลายเดือนก่อน

      @@villagerdude2989all I see is everyone loves these lectures

    • @lintz_lin
      @lintz_lin 9 หลายเดือนก่อน +5

      @@bassycounter Late answer here but I think it's because this is one of the hardest part of the CS50 course, if you get past this block then you'll be very likely to finish the whole course. Some people unfortunately give up at week 4 or week 5.

    • @bassycounter
      @bassycounter 9 หลายเดือนก่อน +5

      @@lintz_lin oh okay, makes sense. I find it very interesting and refuse to give up until I finish, just turned in week 9 and about start final project once i get everything properly setup locally. Wishing the best of luck and good vibes to everybody else!

  • @sultanghani7356
    @sultanghani7356 9 หลายเดือนก่อน +35

    This man is doing more work than the hardwares.

  • @themintroid
    @themintroid 5 หลายเดือนก่อน +70

    brain *my_brain = malloc(sizeof(lecture5));
    >segmentation fault

    • @ProgrammerPenguin
      @ProgrammerPenguin 4 หลายเดือนก่อน +10

      lovely geek humor.

    • @themintroid
      @themintroid 4 หลายเดือนก่อน +4

      @@ProgrammerPenguin i remembered my brain got fried watching this lecture

    • @ProgrammerPenguin
      @ProgrammerPenguin 4 หลายเดือนก่อน +1

      @@themintroid i finished the week, im on week 7 but i just wanted to rewatch it.

    • @themintroid
      @themintroid 4 หลายเดือนก่อน

      @@ProgrammerPenguin good luck! week 7 pset is fun

    • @ProgrammerPenguin
      @ProgrammerPenguin 4 หลายเดือนก่อน

      @@themintroid how far have you gotten?

  • @FigueMonk
    @FigueMonk 7 หลายเดือนก่อน +237

    I'm at a point where I don't even understand what it is I don't understand.

    • @lamy1057
      @lamy1057 7 หลายเดือนก่อน +17

      just stop and watch some other video about it then come back

    • @TheHeroIsRisingUp
      @TheHeroIsRisingUp 7 หลายเดือนก่อน

      ​@@lamy1057that's what I do 😁

    • @4olufade
      @4olufade 7 หลายเดือนก่อน +12

      take breaks, at most after one hour but you have to walk away from the computer, headphones, etc literally unplug. On my longest day, I took a two hour break and enjoyed the weather outside before resuming and it and when I resumed it was very simple

    • @adwaitjog4571
      @adwaitjog4571 7 หลายเดือนก่อน +3

      @@4olufade bro pls tellme i am gonna go to college and i dont know how to code and i am feeling left behind my peers some of them! pls tell me if i watch this in 2x and complete all the lectures in 2 days and the complete all the home work in 10-15 days will it be a good strategy to complete this course fast? as i wanna also take cs50 ai w etc. pls tell

    • @riinegxn1965
      @riinegxn1965 7 หลายเดือนก่อน +7

      @@adwaitjog4571you’d be better off taking your time so you can absorb the information and get a better foundation. Stop comparing yourselves to others everyone learns at a different pace. But if you still want to try to rush through it do so knowing that you’ll likely miss out on important fundamentals. I’m in the same boat as you basically but i’m just taking my time. Good luck though bro

  • @taolyu8439
    @taolyu8439 23 วันที่ผ่านมา +1

    I completed week5 in 2 weeks, with problem set. rewriting sample codes in lectures helped me a lot while doing problem sets.

  • @abdullah.astro1
    @abdullah.astro1 11 หลายเดือนก่อน +10

    شكرا ديفيد واخيرا خلصت الاسبوع الطويل هذا وبالتوفيق للجميع

  • @jeenyah
    @jeenyah 6 หลายเดือนก่อน +8

    tbh this is one of the most difficult lectures i ever witnessed in my life

  • @fest8177
    @fest8177 ปีที่แล้ว +32

    We’re back again with this hellish week 😂

  • @dianaarcticfox5832
    @dianaarcticfox5832 8 หลายเดือนก่อน +46

    Today I feel like Penny trying to study physics with Sheldon Cooper

    • @rishavjain5087
      @rishavjain5087 7 หลายเดือนก่อน +2

      i started watching, this on monday...and it is wednesday, when i finally got something😂😂

    • @dianaarcticfox5832
      @dianaarcticfox5832 7 หลายเดือนก่อน

      @@rishavjain5087 same friend, same

  • @andoryu14
    @andoryu14 10 หลายเดือนก่อน +38

    I recall people saying week 3 or 4 were the hardest, but this week has really deflated my sails and I'm not even at the pset yet

    • @nanovoidalt
      @nanovoidalt 9 หลายเดือนก่อน +12

      this one is giving me a headache trying to understand pointer arithmetic. I now see why people call C an archaic language if you're new

    • @bassycounter
      @bassycounter 9 หลายเดือนก่อน +3

      Yall got this!! Just keep watching lectures and sessions and read the notes if needed.

    • @andoryu14
      @andoryu14 8 หลายเดือนก่อน +9

      Update: finally submitted the final week 5 problem more than a month later. Hardest week so far for me by a lot, but getting this far has taken me 9 months to do 5 weeks of problems. Don't give up!

    • @bassycounter
      @bassycounter 8 หลายเดือนก่อน

      @@andoryu14 Well done! Speller was certainly a tricky one, I’m not even sure if I’d be able to easily redo it if I were to try it again, but to be fair, a lot of these problem sets are really hard to FULLY digest within only a week, they’re mostly just things you get better at by repeating over time to get more comfortable with. Just a few more weeks to go! The stuff with Python is a breath of fresh air, I just got to the final project about a week ago, still haven’t made much progress with it if I’m being honest since everything is coming from scratch and I’m having trouble with planning out how I want everything to look and work, but I think you’ll like the next few weeks, especially the week with SQL, that was a fun problem set.

    • @vwhxss-390
      @vwhxss-390 8 หลายเดือนก่อน +4

      ​@@andoryu14 Cool bro I just finished week 4, wish me luck

  • @AndyJagroom-ur7xh
    @AndyJagroom-ur7xh 8 หลายเดือนก่อน +6

    I love cs50 and David

  • @Aman-fz1ew
    @Aman-fz1ew ปีที่แล้ว +16

    Top quality demonstration .

  • @sefonefinpsefnpefn4191
    @sefonefinpsefnpefn4191 ปีที่แล้ว +7

    finally finish this video! keep going guys!

  • @Nillipilli
    @Nillipilli 8 หลายเดือนก่อน +2

    Again great way of explaining all these concepts! Very good examples, a pleasure to watch :)

  • @Shawky.
    @Shawky. ปีที่แล้ว +24

    Happy New Year and all the best for 2024 ! Happy Coding 😃

  • @MuhammadQasim-92
    @MuhammadQasim-92 8 หลายเดือนก่อน +2

    Thank you sir for explaining it in such a simplified way, respect.

  • @fbiagent6081
    @fbiagent6081 ปีที่แล้ว +6

    Where was this when i needed it 😭

  • @joaoarthurg.soares5893
    @joaoarthurg.soares5893 หลายเดือนก่อน +1

    by far the hardest class by now

  • @pavan7335
    @pavan7335 11 หลายเดือนก่อน +152

    Intro music is a banger!!! Whoever composed it, hatsoff!

    • @parthdeshwal4419
      @parthdeshwal4419 9 หลายเดือนก่อน +2

      indeed

    • @rotondwaphosiwa1197
      @rotondwaphosiwa1197 7 หลายเดือนก่อน

      cn i sample this shii?!

    • @Bacinator334
      @Bacinator334 5 หลายเดือนก่อน +1

      String s = "And when everybody is super...no one will be";

    • @abbashussayn
      @abbashussayn 5 หลายเดือนก่อน +10

      @@Bacinator334 char *s 😭

    • @Bacinator334
      @Bacinator334 4 หลายเดือนก่อน

      @@abbashussayn bro. Go to the library.

  • @chandrabehera
    @chandrabehera 4 หลายเดือนก่อน +3

    Loved how they showed malloc using balloons and pointing it with threads for showing pointers and pictured the whole linked list. Thank you CS50. These activities are super helpful.

  • @johnmayfield7662
    @johnmayfield7662 10 หลายเดือนก่อน +3

    I loved the balloons explanation Mr. David

  • @Hellmiauz
    @Hellmiauz 3 หลายเดือนก่อน +4

    MY BRAIN EXPLODED.

  • @anasanas7842
    @anasanas7842 ปีที่แล้ว +124

    "I have no idea what im studying" lol

    • @sahil-anurag
      @sahil-anurag ปีที่แล้ว +1

      yeah! i have noticed. lol😂😂

    • @AnythingGoesCodes
      @AnythingGoesCodes 7 หลายเดือนก่อน +4

      he's paying thousands for that box of cookies

    • @nepalistories108
      @nepalistories108 6 หลายเดือนก่อน +1

      And he is enrolled in Harvard 🤣🤣

  • @alainrouleau
    @alainrouleau 8 หลายเดือนก่อน +55

    This is ALL pretty crazy in terms of low-level languages like C. And makes you wonder how anything actually got accomplished in the good old days. They no doubt wasted a lot of time on just simple stuff.
    The equivalent would be of someone wanting to go to the grocery store. But wait... Oh ya, that's right, first I have to build the car, LOL
    Thank god for high-level languages.

    • @besegawG
      @besegawG 6 หลายเดือนก่อน +1

      LOL😅

    • @twincherries6698
      @twincherries6698 6 หลายเดือนก่อน +1

      Isn't C a high level language

    • @alainrouleau
      @alainrouleau 6 หลายเดือนก่อน +2

      ​@@twincherries6698To be honest, it's a bit complicated, if you ask me.
      When C first came out it was considered high-level compared to other languages. Now the reverse can be argued. And I've even heard it being called a middle-level language, if you can believe it.

    • @robertedwards4401
      @robertedwards4401 6 หลายเดือนก่อน +3

      To an extent. If you want to compare C with Python and JavaScript, C is a Ferrari and the others are Fords. You may be able to build things quickly with Python and JS, but the manual things one needs to do in C, along with C being one iteration away from machine code, makes it the fastest and most precise language in existence. it doesn’t arbitrarily assign memory like Python or leak like JavaScript and it doesn’t carry and pass around huge pieces of data to other functions/etc.

    • @algirdasltu1389
      @algirdasltu1389 3 หลายเดือนก่อน +2

      I think you got confused on what level means here. The lower the level of the language, the more control it gives you over hardware (the lowest you go before straight up binary is assembly). Higher level abstracts it all away (kinda like python for example). High level doesnt mean complicated here. Ironically its quite the opposite lol.

  • @RobertMooney-ut7cc
    @RobertMooney-ut7cc 21 วันที่ผ่านมา

    Excellent lecture, as always.

  • @BestHomeOman
    @BestHomeOman หลายเดือนก่อน

    39:26 NODE
    41:23 DATA, METADATA
    43:50 STRUCT NODE
    46:00 LINKED LIST (VISUALIZATION) 54:53

  • @bblz9171
    @bblz9171 8 หลายเดือนก่อน +4

    I love the linked list demo

  • @omowomaroland1880
    @omowomaroland1880 11 หลายเดือนก่อน +5

    Truly very simplified approach

  • @ex4787
    @ex4787 7 หลายเดือนก่อน +5

    The idea of a database that expands exponentially as you add things to it is hilarious to me. "Congratualtions, fellow scientists, we've put our heads together and come up with an algorithm that always takes constant time to search... Now there's almost no practical scenarios where we could use it, but it's cool, right?"

  • @sixteen9199
    @sixteen9199 4 หลายเดือนก่อน +10

    gonna make a pointer named gun and point it to my fkn brainnnnnn

  • @asteroideare
    @asteroideare 7 หลายเดือนก่อน

    The ballon stuff was lighthearted and cool 🤣🤣🤣. Thanks for that Scully and David

  • @xahonmanalocon7405
    @xahonmanalocon7405 8 หลายเดือนก่อน +17

    oh my goodness, i find this part so difficult. i have to rewatch weeks 4 and 5.

    • @TheGmbo
      @TheGmbo 7 หลายเดือนก่อน

      me too

    • @Bacinator334
      @Bacinator334 5 หลายเดือนก่อน

      Understand the problem sets, those will help you more

  • @thankyouthankyou1172
    @thankyouthankyou1172 ปีที่แล้ว +4

    I like how well the lecture was prepared: handing out cookies to demo FIFO

  • @DTALKS01
    @DTALKS01 9 หลายเดือนก่อน +1

    Amazing explanation of hash table

  • @veronicasmemories
    @veronicasmemories 2 หลายเดือนก่อน +1

    I'm determined to finish this series before the 2025 videos go live

  • @WizeChoice
    @WizeChoice 10 หลายเดือนก่อน +1

    So Amazing 👉🏾✨✨✨

  • @sh1w5z
    @sh1w5z 2 หลายเดือนก่อน

    I was just can't stop listening it, Wow

  • @Alexiii15
    @Alexiii15 7 หลายเดือนก่อน +5

    Restarted cs50x , didnt rlly understand it. I was watching until week 8 and decided to retry bc I was struggling to keep up and understand. But now Im getting better at it!

    • @davidjmalan
      @davidjmalan 7 หลายเดือนก่อน +6

      Welcome back!

    • @Duck-9900
      @Duck-9900 7 หลายเดือนก่อน

      Good job👍

  • @smartbrandersai
    @smartbrandersai 5 หลายเดือนก่อน +1

    You gotta watch shorts with these man

  • @raxcoins
    @raxcoins ปีที่แล้ว +8

    Dave has done more than 90% of profs out there. respect.

  • @seiitkhanotegali7734
    @seiitkhanotegali7734 7 หลายเดือนก่อน +3

    can't wait to start week 6 and get to python)

  • @publicalways
    @publicalways หลายเดือนก่อน

    A big thank you to Prof David Malan for his ability to explain concepts with such clarity. If you also took the supplementary class for the same week 5: Data Structures, you'll really appreciate the huge difference in the teaching ability between him and his other colleagues.

  • @homegrownstudios5812
    @homegrownstudios5812 4 หลายเดือนก่อน +4

    Is it only me who thought this lecture was so much harder than all the previous ones?? I am struggling here just comprehending the lecture here compared to all of the previous ones and its so annoying & confusing. I pray that i am not alone in this lmao

    • @davidjmalan
      @davidjmalan 4 หลายเดือนก่อน +5

      Lecture 5 indeed tends to be the most challenging!

    • @homegrownstudios5812
      @homegrownstudios5812 4 หลายเดือนก่อน +1

      @@davidjmalan Great to hear that im not alone and that it should get at least a bit easier! Really appreciate the reply, thanks :)

    • @NabayegoRebecca
      @NabayegoRebecca 3 หลายเดือนก่อน

      Actually this lecture has challenged me for sure, coz am trying my level best but awww things are really tough in this week 5

  • @cybrd230
    @cybrd230 ปีที่แล้ว +8

    It suddenly started making a lot more sense.

  • @HoneyHandsH
    @HoneyHandsH 7 หลายเดือนก่อน +4

    I really want a delicious cookie break and stress ball

  • @SyariefAzman
    @SyariefAzman 4 หลายเดือนก่อน +1

    i just watch about 15 minutes at a time still i have no idea what i was watching and want to sleep right away . but that not the worst part. the worst part is i even dream about this lecture and still have no idea after i woke up 🥵

  • @CptSamel
    @CptSamel 8 หลายเดือนก่อน +7

    This dude is still losing sleep over how the balloon demonstration went but to me it seemed to go just fine 🤷‍♂

  • @bhaskar-9000
    @bhaskar-9000 หลายเดือนก่อน

    For all other videos I usually do 1.5X speed but for David here I'm finding 0.85X to be optimal :)

  • @xavier2586
    @xavier2586 2 หลายเดือนก่อน

    Thank you Sir❤

  • @MartaBayou
    @MartaBayou หลายเดือนก่อน

    Thank you for today

  • @jordanxperience
    @jordanxperience 6 หลายเดือนก่อน +6

    The only thing more difficult than this course is being born poor in Brazil. So I think I can handle it.

  • @AuroraClair
    @AuroraClair 4 หลายเดือนก่อน +5

    Interesting how David doesn't stop and ask if there's any questions during this whole lecture, like he did for every previous lecture...hmm, I wonder why 🤔..

    • @Hellmiauz
      @Hellmiauz 3 หลายเดือนก่อน +2

      I guarante you nobody who is first hearing this class have a fukin clue of wtf is goin on.

  • @sibusisomakema7718
    @sibusisomakema7718 7 หลายเดือนก่อน

    if you code the middle of the list scenario before the end of the list in linked lists, make sure n->next != NULL in the IF statement

  • @huropjohe2922
    @huropjohe2922 9 หลายเดือนก่อน +1

    1:15:00, I think if node's number is equal, '=' can be add at line62 or line41.

  • @100drips
    @100drips 6 หลายเดือนก่อน +3

    This lecture is particularly hard for me to understand. I've watched it two times and i am currently watching the "linked list" part the 4th time. Just now, i begin to understand the implementation.

    • @Baumwaechter
      @Baumwaechter 5 หลายเดือนก่อน

      Dont give up bro, we've all been there

    • @baddiegirl4203
      @baddiegirl4203 2 หลายเดือนก่อน

      I thought I was the only one struggling with the linked list section. My brain was getting fried. difficult to keep up TT

  • @clutchyfinger
    @clutchyfinger หลายเดือนก่อน

    My progress through this video was O(n), n being the amount of times I rewound.

  • @moltyfoam4168
    @moltyfoam4168 หลายเดือนก่อน

    The balloon activity was super helpful even though it did not go as well, i think it should be kept or a similar activity to it should be kept in the lecture to provide a visual understanding
    By far the most complicated lecture in the series after algorithm lecture

  • @fakrulotaku5655
    @fakrulotaku5655 8 หลายเดือนก่อน +4

    I missed the ending line, “This was CS50”

  • @philippwiederkehr7262
    @philippwiederkehr7262 9 หลายเดือนก่อน

    I liked the balloons demonstration!

  • @Andrii87
    @Andrii87 หลายเดือนก่อน

    It takes some time to understand those concepts.

  • @kuldeeppal7229
    @kuldeeppal7229 9 หลายเดือนก่อน +7

    Today is my exam, wish me luck 🤞

    • @aasrp661
      @aasrp661 8 หลายเดือนก่อน

      Yes bro good good exams. 😎

  • @harshpareta-o6o
    @harshpareta-o6o 3 หลายเดือนก่อน

    Thanks

  • @pridebeats1117
    @pridebeats1117 6 หลายเดือนก่อน

    S/o to Harvard

  • @喻國維-b2i
    @喻國維-b2i 3 หลายเดือนก่อน

    I started to feel like that "No pun intended." is intended.

  • @bikashtamang9756
    @bikashtamang9756 9 หลายเดือนก่อน +2

    even tough he is explainging in such a goood way don't know why i am not able to understand it

    • @King_504
      @King_504 9 หลายเดือนก่อน

      I think he's a tad bit too animated. gotta weed through his fluff to get to the actual message he's trying to convey

  • @taolyu8439
    @taolyu8439 22 วันที่ผ่านมา

    Using leading 3 letters of a word as an input to my hash function take me to a check time of 1.70s in week5 speller.

    • @joy2993
      @joy2993 11 วันที่ผ่านมา

      What time you've got in "holmes.txt" ? Mine took up until 5s even tough i already use 3 prefix letters and 18000 buckets. :/

  • @ashokkumarmuthu7750
    @ashokkumarmuthu7750 6 หลายเดือนก่อน +1

    I think we can insert element in linkedlist at last with O(1) instead of o(n) by storing the last inserted node pointer in outer scope. Correct me if i am wrong.

    • @fynntotalwar1672
      @fynntotalwar1672 5 หลายเดือนก่อน

      yes last node is commonly stored as well in linked list implementations

  • @budiardjo6610
    @budiardjo6610 11 หลายเดือนก่อน +1

    i am glad he is using c language

  • @Gobarshev
    @Gobarshev 6 หลายเดือนก่อน

    I have an exam coming up hope this helps

  • @-.-_._--
    @-.-_._-- 3 หลายเดือนก่อน +3

    this lecture felt a bit too much rushed compared to the previous ones where malan brushes up the confusing topics a second time

  • @nonefvnfvnjnjnjevjenjvonej3384
    @nonefvnfvnjnjnjevjenjvonej3384 7 หลายเดือนก่อน +3

    i wish universities of this quality were in africa, india and other underdeveloped countries. the world would have been so much better then.

  • @TheAuraEngineer
    @TheAuraEngineer 2 หลายเดือนก่อน +1

    1:45:01 can't you just have an array a-z then each letter a-z points to another array a-z and so on until u reach the amount of letters you need??
    edit: nvm they get there oops lol
    edit2: oml I LOVE TRIES, GIVE ME INFINITE STORAGE CUZ ITS ALL I WANNA USE

  • @huropjohe2922
    @huropjohe2922 9 หลายเดือนก่อน +1

    1:21:27 英文字幕裡的[INAUDIBLE],因該是mario,馬力歐,前幾堂課舉的例子。

  • @antonioskokiantonis7051
    @antonioskokiantonis7051 ปีที่แล้ว +20

    Ok, thank you C, we're moving to your modern child, Python!

  • @markmarki9511
    @markmarki9511 16 วันที่ผ่านมา

    36:01 That checks out lol.

  • @3rwassonst
    @3rwassonst 6 หลายเดือนก่อน

    so nice :) ty

  • @stevenlomon
    @stevenlomon 8 หลายเดือนก่อน +1

    21:26 Whenever using malloc or whenever using pointers?

  • @Mellon00
    @Mellon00 8 หลายเดือนก่อน +1

    6:00 so relatable

  • @jerrypro9454
    @jerrypro9454 10 หลายเดือนก่อน +3

    57:50 Is it just me or atoi function was never introduced before in the lecture?

    • @paiksprod8358
      @paiksprod8358 9 หลายเดือนก่อน +5

      Atoi was introduced in problem sets, probably in week 3 as i remember because i used it myself before week 5. In general problem sets requires sometimes more than just watching the lecture

    • @theosiris4179
      @theosiris4179 4 หลายเดือนก่อน

      @@tonyvenice5252 Yes, the problem sets are on the OpenCourseWare website linked in the description. Additionally, there is supplemental information, including notes, the source code written in the lectures, seminars, additional practice problems (meant to be solved after the problem sets), and other videos (called "Shorts" and "Sections").

    • @theosiris4179
      @theosiris4179 4 หลายเดือนก่อน

      @@tonyvenice5252 Located in the OpenCourseWare website in the description.

    • @KiraIsGod
      @KiraIsGod 3 หลายเดือนก่อน

      @@tonyvenice5252 you can see it in the cs50 manual or c libraries

  • @wanderingfido
    @wanderingfido ปีที่แล้ว +1

    8:02 It's misleading to use method names _push_ and _pop_ because those are the typical functions for an array. During which the more cpu-intensive operations of shrinking and expanding the physical size/length of an array is committed. The _get()_ and _put()_ methods more accurately imply that cells/elements within the queue are _overwritten_ or non-destructively _read_ as per index values updated within _head_ and _tail_ integer variables. While the size/length of the array remains fixed according to a _CAPACITY_ value.

  • @AhamdMQ
    @AhamdMQ 9 หลายเดือนก่อน +1

    what if we have more than one person with the same name when we're using Tries?

  • @raksop.4490
    @raksop.4490 6 หลายเดือนก่อน

    1:49:40 I don't really think that is making it better, if you wanted to make sure you only get positive values I guess you could put in an if statement that raises an error or something like that. This way, you just convert negative numbers to positive numbers, which could lead to you trying to access garbage values. This seems much harder to debug to me.

    • @KiraIsGod
      @KiraIsGod 3 หลายเดือนก่อน

      look at it this way, if your hash function returns a negative value and that value is used as an index in an array, it would raise an exception.

  • @akarshsahay4381
    @akarshsahay4381 8 หลายเดือนก่อน +2

    i had a ques at 1:04:25 , when u entered at the terminal 1 2 3, you are also entering spacebars ( ) which cant be converted to integers, so why no error?

    • @mathesukk
      @mathesukk 8 หลายเดือนก่อน +2

      hi! spaces in your shell(terminal) are used to separate arguments, so the program doesnt even receive those spacebars. so, argv is just [1,2,3] instead of [1, "", 2, "", 3].

    • @akarshsahay4381
      @akarshsahay4381 8 หลายเดือนก่อน +1

      @@mathesukk okk thanks a lot

  • @BOTAimBotz
    @BOTAimBotz 5 หลายเดือนก่อน

    Well! That was something.

  • @Shamimkhan-wi8zy
    @Shamimkhan-wi8zy 3 หลายเดือนก่อน

    wow !!

  • @algirdasltu1389
    @algirdasltu1389 3 หลายเดือนก่อน

    1:13:56 im confused. Dont you get a garbage value as n->next then since you dont set it to null? If so it leaves you without a null to terminate the list... wont it just keep iterating over and over again appending garbage till it runs out of memory?

    • @KiraIsGod
      @KiraIsGod 3 หลายเดือนก่อน

      line 32, every new node's next is set to NULL. so when you reach the last element of the linked list, you make this new element of the list to point to the new node who in turn points to NULL

  • @IPSita-i7e
    @IPSita-i7e 5 หลายเดือนก่อน +1

    Could anyone tell me what is the music at the beginning?

    • @davidjmalan
      @davidjmalan 5 หลายเดือนก่อน +2

      See soundcloud.com/cs50/cs50x-2024-original-soundtrack !

    • @IPSita-i7e
      @IPSita-i7e 5 หลายเดือนก่อน

      @@davidjmalan Thanks .Obliged for these awesome lectures

  • @DejaVu78
    @DejaVu78 5 หลายเดือนก่อน

    loved this course ❤‍🩹

  • @Okic1515
    @Okic1515 4 หลายเดือนก่อน

    In the implementation code of a linked list, when creating a linked list of size 1, is it acceptable to malloc directly into 'list' without declaring a new variable n?

  • @DebopriyoBasu
    @DebopriyoBasu ปีที่แล้ว +2

    Thank you for sharing this online. Time to fix my knowledge gaps.

  • @nepalistories108
    @nepalistories108 6 หลายเดือนก่อน +1

    When LIFO doesn't gives you cookies, Laugh 😂🤣

    • @Emad-nl4jk
      @Emad-nl4jk 5 หลายเดือนก่อน

      or cry depending on which side of the spectrum you are on

  • @AnythingGoesCodes
    @AnythingGoesCodes 7 หลายเดือนก่อน +1

    keep the balloon demo

  • @ReNaq313
    @ReNaq313 7 หลายเดือนก่อน

    1:08:00