CS50x 2024 - Lecture 5 - Data Structures

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 พ.ย. 2024

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

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

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

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

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

    • @friedrichmyers
      @friedrichmyers 5 หลายเดือนก่อน +16

      No. Just watch it once and practice

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

      I thought it was only me who do this
      😀

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

      @@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 4 หลายเดือนก่อน

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

  • @evachen8623
    @evachen8623 10 หลายเดือนก่อน +63

    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.

  • @wsollers1
    @wsollers1 9 หลายเดือนก่อน +103

    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 7 หลายเดือนก่อน +4

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

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

      ​@@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 6 หลายเดือนก่อน +1

      Is there any Python DSA course U can recommend

    • @nohaidea
      @nohaidea 23 วันที่ผ่านมา

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

  • @abdullaharshed
    @abdullaharshed 3 หลายเดือนก่อน +18

    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 3 หลายเดือนก่อน +2

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

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

      @@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 3 หลายเดือนก่อน +4

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

    • @thienvinaseco1450
      @thienvinaseco1450 14 วันที่ผ่านมา

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

  • @manuelCO89
    @manuelCO89 5 หลายเดือนก่อน +62

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

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

      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 2 หลายเดือนก่อน

      ​​@@abdullahfarooq4770
      Great logic

    • @Hellmiauz
      @Hellmiauz 27 วันที่ผ่านมา +3

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

    • @abdullahfarooq4770
      @abdullahfarooq4770 25 วันที่ผ่านมา +2

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

  • @blessdarah1256
    @blessdarah1256 9 หลายเดือนก่อน +13

    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.

  • @aftertwentea
    @aftertwentea 10 หลายเดือนก่อน +52

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

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

      Fr 💀

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

      What exactly do you mean by “stumbling”

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

      @@villagerdude2989all I see is everyone loves these lectures

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

      @@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 6 หลายเดือนก่อน +4

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

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

    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🙏🏽

  • @pavan7335
    @pavan7335 9 หลายเดือนก่อน +141

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

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

      indeed

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

      cn i sample this shii?!

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

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

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

      @@Bacinator334 char *s 😭

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

      @@abbashussayn bro. Go to the library.

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

    This man is doing more work than the hardwares.

  • @Shawky.
    @Shawky. 10 หลายเดือนก่อน +23

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

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

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

  • @FigueMonk
    @FigueMonk 5 หลายเดือนก่อน +178

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

    • @lamy1057
      @lamy1057 5 หลายเดือนก่อน +13

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

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

      ​@@lamy1057that's what I do 😁

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

      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 5 หลายเดือนก่อน +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 5 หลายเดือนก่อน +5

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

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

    I love cs50 and David

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

    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 4 หลายเดือนก่อน +1

      LOL😅

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

      Isn't C a high level language

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

      ​@@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 3 หลายเดือนก่อน +2

      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 หลายเดือนก่อน +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.

  • @fest8177
    @fest8177 10 หลายเดือนก่อน +30

    We’re back again with this hellish week 😂

  • @chandrabehera
    @chandrabehera หลายเดือนก่อน +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.

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

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

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

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

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

    I loved the balloons explanation Mr. David

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

    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 7 หลายเดือนก่อน +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 6 หลายเดือนก่อน +3

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

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

      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 6 หลายเดือนก่อน

      @@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 6 หลายเดือนก่อน +4

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

  • @Aman-fz1ew
    @Aman-fz1ew 9 หลายเดือนก่อน +16

    Top quality demonstration .

  • @dianaarcticfox5832
    @dianaarcticfox5832 5 หลายเดือนก่อน +41

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

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

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

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

      @@rishavjain5087 same friend, same

  • @raxcoins
    @raxcoins 10 หลายเดือนก่อน +8

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

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

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

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

    finally finish this video! keep going guys!

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

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

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

      lovely geek humor.

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

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

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

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

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

      @@ProgrammerPenguin good luck! week 7 pset is fun

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

      @@themintroid how far have you gotten?

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

    Where was this when i needed it 😭

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

    Truly very simplified approach

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

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

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

      me too

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

      Understand the problem sets, those will help you more

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

    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?"

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

    I love the linked list demo

  • @Alexiii15
    @Alexiii15 4 หลายเดือนก่อน +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 4 หลายเดือนก่อน +5

      Welcome back!

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

      Good job👍

  • @sh1w5z
    @sh1w5z 4 วันที่ผ่านมา

    I was just can't stop listening it, Wow

  • @cybrd230
    @cybrd230 10 หลายเดือนก่อน +8

    It suddenly started making a lot more sense.

  • @Hellmiauz
    @Hellmiauz 26 วันที่ผ่านมา +3

    MY BRAIN EXPLODED.

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

    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

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

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

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

    Amazing explanation of hash table

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

    You gotta watch shorts with these man

  • @anasanas7842
    @anasanas7842 10 หลายเดือนก่อน +117

    "I have no idea what im studying" lol

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

      yeah! i have noticed. lol😂😂

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

      he's paying thousands for that box of cookies

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

      And he is enrolled in Harvard 🤣🤣

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

    I really want a delicious cookie break and stress ball

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

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

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

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

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

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

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

    So Amazing 👉🏾✨✨✨

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

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

  • @100drips
    @100drips 4 หลายเดือนก่อน +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 3 หลายเดือนก่อน

      Dont give up bro, we've all been there

    • @baddiegirl4203
      @baddiegirl4203 22 ชั่วโมงที่ผ่านมา

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

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

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

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

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

  • @SyariefAzman
    @SyariefAzman 2 หลายเดือนก่อน +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 6 หลายเดือนก่อน +5

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

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

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

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

    S/o to Harvard

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

    I missed the ending line, “This was CS50”

  • @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

  • @antonioskokiantonis7051
    @antonioskokiantonis7051 10 หลายเดือนก่อน +20

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

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

    6:00 so relatable

  • @bikashtamang9756
    @bikashtamang9756 6 หลายเดือนก่อน +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 6 หลายเดือนก่อน

      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

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

    Thanks

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

    i am glad he is using c language

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

    He earned my respect when he pronounced valgrind "val grinned"

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

      makes me think of norse mythology

  • @DebopriyoBasu
    @DebopriyoBasu 10 หลายเดือนก่อน +2

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

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

      how are you verified???

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

      why are you verified?

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

    I liked the balloons demonstration!

  • @ashokkumarmuthu7750
    @ashokkumarmuthu7750 4 หลายเดือนก่อน +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 2 หลายเดือนก่อน

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

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

    Today is my exam, wish me luck 🤞

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

      Yes bro good good exams. 😎

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

    I have an exam coming up hope this helps

  • @Nanagos
    @Nanagos 10 หลายเดือนก่อน +8

    I didn't even notice until now, that David Malan is wearing the same thing all the time 😅

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

    wow !!

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

    21:26 Whenever using malloc or whenever using pointers?

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

    Well! That was something.

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

    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 26 วันที่ผ่านมา

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

  • @Vhc706
    @Vhc706 8 หลายเดือนก่อน +35

    Raise your hand if you choked up on linked lists 🤚

  • @Choshmeesh
    @Choshmeesh 28 วันที่ผ่านมา

    Dang, Scully was quite expressive with her body language. I wonder if she is a professional mime.

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

    so nice :) ty

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

    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 หลายเดือนก่อน +3

      Lecture 5 indeed tends to be the most challenging!

    • @homegrownstudios5812
      @homegrownstudios5812 หลายเดือนก่อน +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 17 วันที่ผ่านมา

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

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

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

  • @as.am.robiulaoyalsagar9782
    @as.am.robiulaoyalsagar9782 2 หลายเดือนก่อน +1

    I think that these lectures are not for beginners as a beginner. Do you agree with me,guys ??? ❤❤❤

    • @Hellmiauz
      @Hellmiauz 26 วันที่ผ่านมา

      This is super complicated for me ngl.

  • @quang.luu.179
    @quang.luu.179 5 หลายเดือนก่อน +1

    👍👍👍

  • @akarshsahay4381
    @akarshsahay4381 5 หลายเดือนก่อน +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 5 หลายเดือนก่อน +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 5 หลายเดือนก่อน +1

      @@mathesukk okk thanks a lot

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

    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 15 วันที่ผ่านมา

      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.

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

    1:39:40
    1:41:45
    1:43:32

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

      I wonder what he actually said in the live class instead of Lakitu

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

      @@charlesabju907 I NEED ANSWERS

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

    1:51:31 0.26 second slower made a guy at microsoft discover a backdoor so yea xD

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

    my brain had a segementation fault 1:14:23

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

      same xD

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

      I guess every week atleast one person is traumatised and now came my turn

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

    loved this course ❤‍🩹

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

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

    • @paiksprod8358
      @paiksprod8358 7 หลายเดือนก่อน +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

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

      Yes I don't recall it either. @paikspord8358 what is problem sets ? Is it available to the general public ?

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

      @@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 หลายเดือนก่อน

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

    • @KiraIsGod
      @KiraIsGod 15 วันที่ผ่านมา

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

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

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

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

    First of all great efforts and brilliant content! That said, I am always fascinated with how educators can make simple concepts sound like they are talking statistical mechanics or some sophisticated topic! I am not sure if the impact is to keep students alerted or the average students will be thinking ooh this is so sophisticated and result in anxiety! not sure! but what I am sure of is that these are pretty average logical informational topics like most of computer science subjects and they don't require all this excitation!

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

      they dont if youre chatgpt

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

      Well in my opinion this excitement and playfull approach is one of the best ways to keep the students concentrated and interested. Excitement is not required but it makes the lecture so much more interesting.
      You could say the same thing about every subject in school. Compared to your knowledge almost everything is "average". However, it is not to the students! So please rethink your opinion and try to avoid calling information "average".

    • @Josh-Parkhill
      @Josh-Parkhill 4 หลายเดือนก่อน

      the implementation of self-referential code in low level mechanics is not "average informational topics." I have to imagine the enthusiasm helps people learn.

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

    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?

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

    keep the balloon demo

  • @wanderingfido
    @wanderingfido 9 หลายเดือนก่อน +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.

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

    28:30 do we now have TWO pointers pounting at the same chunk of memory (1,2,3,4)?
    Edit: I thought free-ing list also "destroyed " it's pointer, so the 8 bytes of the pointer could also be reused?? No? ○.●

    • @KiraIsGod
      @KiraIsGod 15 วันที่ผ่านมา

      not quite, both of the pointers point to the address of the memory of the first element, in this case the memory address of 1.
      every element in this case is 4 bytes (int is 32 bits).
      when allocating memory for list you are telling the operating system to reserve a chunk of memory for it, this can be seen as metadata in the heap of the program (which also tells you if it's a valid memory allocation), so when you free() list you are telling the operating system that that memory is now available for use, so it becomes invalid memory for the program (list still is pointing to the same memory address, but it's "dangerous" to access it since it's not memory for the program. list becomes a dangling pointer and it's a good practice to make it point to NULL after freeing it, that way you don't point to memory out of the program's scope.

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

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

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

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

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

      @@davidjmalan Thanks .Obliged for these awesome lectures

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

    free(my brain )😮‍💨

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

      forgot ;

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

      @@cfchd10 return 1;

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

      @@brijeshparmar3908 huh?

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

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

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

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

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

    1:08:00

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

    DACH TN -- Oriental already! Public -- influence -- felony - by machine!
    No way -- they be in, that large -- open area! On any -- Campus! Law -- already, "Don't allow!"

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

    I had to ensure if Im watching this at 1.5x speed

  • @algirdasltu1389
    @algirdasltu1389 29 วันที่ผ่านมา

    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 15 วันที่ผ่านมา

      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

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

    hi, at the time line 27.57, do we need to free temp also,, line no 29-free(list); ,line no 30- list = tmp; here list has been assigned with tmp, line 31- as per my thoughts - free(tmp);

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

      I believe at that point 'list' now points to the memory that was allocated to 'tmp', as he set 'list = tmp' on line 30, so 'free(list)' on line 37 is basically free-ing the memory that was once allocated to tmp. I'm still learning this myself so if that's incorrect please correct me :)

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

      heyy you should not free the tmp, it will cause an undefined error, as long as you reassigned it back to list, the pointer(tmp) itself was carried with it to list