[2023] CS50 - (Week 1) Mario (More Comfortable) | Walkthrough & Guide for Beginners | By Anvea

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

КОМЕНТАРІ • 57

  • @StevenAyy
    @StevenAyy 2 роки тому +5

    This is so helpful, if you have a Paypal or Patreon you should post it

    • @Anvea
      @Anvea  2 роки тому +5

      Hi! Thank you for the feedback! In the video description, I have a link for viewers to buy me a coffee if they'd like, but perhaps I can use this opportunity to highlight the link just in case - www.buymeacoffee.com/anvea :)

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

    Singaporeans really are smart. Thank you for all the help.

  • @Kyle-rf5mb
    @Kyle-rf5mb 2 роки тому +15

    No way as somebody brand new to coding would I have worked that out with the columns and rows etc but it has taught me a new one to think about things and hopefully can implement it into the later stuff. I’m sure ill be back to the follow up videos judging by my current level! But I do try till I’m exhausted of any ideas.

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

      Hey man, how you're doing now? I'd like to know your progress

    • @Kyle-rf5mb
      @Kyle-rf5mb Рік тому

      @@ApenasUmMitoTM hey, can't believe it's been 8 months already. So I got to about week 4 of cs50 and then jumped to The Odin Project, finished all fundamentals and started the advanced or intermediate JS and got about 1/4 through that. Now doing a bootcamp 1month into it. It's 3months full time. ( Was goverment funded in the UK ) only reason I did it. However it's really good boot camp and moves very fast.
      Reason I quit cs50 is it wasn't working for me as someone brand new to coding. I like to build from the ground up to understand, all their problems are half built and you have to add to it and was too much for me at that level. I will come back to it because the other courses I have taken don't do algorithms etc.

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

      ​@@Kyle-rf5mb That's very enlightening, I guess i'm gonna stick to it for some while, and go for learning more outside CS50. Thanks, I appreciate the answer :)

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

    your voice and accent is lovely, for me it makes it all smoother and relaxing.

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

    This was very helpful, thank you :)

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

    Good Lord!! This girls good. Too good. The diagrammatic illustrations and all......simply the best.

  • @Jonathan.R.Pereira
    @Jonathan.R.Pereira 2 роки тому +13

    I could not for the life of me figure out where to start with the spaces and hashes. How did you?
    Honestly beating myself up here.
    Now with the explanation it makes sense, but kinda looking back and thinking. "I wish I could have figured it out on my own".. I don't feel I've accomplished anything. Anyone else feeling that?

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

      It's a normal feeling. The important thing in the end is your growth. Just keep learning and practicing.

    • @patricknolan2521
      @patricknolan2521 2 роки тому +1

      I feel a little bit the same, but I'm trying to pause the video and try to fill out the table myself, then try to identify the patterns without help. It doesn't always work, but it's far better than giving up or just copying out the solution line for line.
      It's so wonderfully that she shows how she identifies patterns, as that's not something that they go into in the actual course. Thank you!

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

      I think it's easy to miss some parts, I did the solution in a much less elegant way and watching this think damn how dumb am I. I didn't even think to consider that what I was doing was making a table with rows and columns, and David even eludes to this so It's very easy to miss and watching this has completely blown my mind and now it makes more sense

  • @Thep1x3LXNerd
    @Thep1x3LXNerd 2 роки тому +3

    your tutorial is amazing, I'm from Brazil and your video helped me a lot, thanks for the patience and performance to record this content

    • @wendel7795
      @wendel7795 2 роки тому +1

      mano mano, achei um br
      eu n consegui, a piramide nao sai certa, mas nao sei como arrumar pq ta literalmente igual

    • @Thep1x3LXNerd
      @Thep1x3LXNerd 2 роки тому +1

      @@wendel7795
      #include
      #include
      int main (void)
      {
      // Get input of the Height
      int n;
      do
      {
      n = get_int("Height: ");
      }
      while (n < 1 || n > 8);
      //Print desired pyramid height
      for (int i = 0; i < n; i++)
      {
      // Set perimeters for the columns to print
      for (int j = 0; j < n+i+3; j++)
      {
      if (j == n || j == n+1 || i+j < n-1)
      printf(" ");
      else
      printf("#");
      }
      printf("
      ");
      }
      }

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

      Br aqui
      Eu to completamente perdido nos exercícios, são absurdos para quem está começando aaaaa

  • @astraldoomblog
    @astraldoomblog 3 роки тому +2

    Thank you very much.
    The conceptual breakdown of the code helps significantly in understanding the syntax!
    The logic follows, but it took much longer to parse the syntax going on.

  • @derp-x3j
    @derp-x3j Рік тому +1

    This is very helpful in teaching us how to think about these problems. I never would have thought of drawing out the problem, looking for patterns and turning those into formulas. Thanks!
    editr: I just applied this thinking/approach to another CS50 problem (Scrabble) and was able to solve it :)

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

    As good as it gets when explaining goes. , thx for the detailed walkthrough.

  • @danielkpobari1278
    @danielkpobari1278 2 роки тому +1

    i love your approach easy and nice

  • @ranmguy1012
    @ranmguy1012 4 місяці тому

    thank you

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

    what a wonderful tutorial!

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

    In line 15 why i < n and not not i = n - 1? Rows should always be one less than height.

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

    really help full

  • @adg0305
    @adg0305 7 місяців тому

    Would it be possible to come up with this kind of program without having to do visual illustrations first? without the drawings i dont think i would be able to understand all of these

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

    The cs50 course for introdution to the newly computer science, the homework level is on a different dimension.

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

      I have to agree with you :’)

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

    8:32 I don't get why j > n + I + 2 changes to
    j > n + I + 3

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

      Hi! It was j = n + l + 2
      So since I’m using < instead, I have to adjust it to j < n + l + 3.
      Hope this clarifies!

  • @Gabriela-yk5kx
    @Gabriela-yk5kx 3 роки тому +1

    omg thank you!!!!

  • @mtf5104
    @mtf5104 2 місяці тому

    I tried running this code and kept getting "use of an unidentified integer "i" on line 18. Anyone know why?

  • @KamikazeHD1
    @KamikazeHD1 2 роки тому +2

    how did you come to the idea of making a new formula instead of using i + j as in your mario(less) guide? im actually think this part where you find the formula is the most difficult barrier i'm trying to face.

  • @Rhand007
    @Rhand007 2 роки тому +1

    Excellent video. I watched your mario less video first and used what we saw there to try to do this by myself. But I took it too far and replaced all spaces by dots and let row 0 also run to column 11, so that rows 8-9-10-11 where populated by dots. I spent an hour trying to concoct mathematical formulas to get a dot below 4 and after 7 that stuck through the following rows as well. I finally gave up and when I saw your table at ua-cam.com/video/IYiREa_Oo84/v-deo.html I felt so stupid :) So logical, but I just didn't think of it. Then afterwards I spent again 20 minutes to create 4 different if/else if statements for spaces and hashtags, and once again I felt stupid when watching your video seeing how easy it could have been. Still, I am happy my formulas were successful, albeit much more time consuming... =)

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

      this was my code in the end:
      for (int j = 0; j < (n+i+3); j++)
      {
      if (j == n || j == n +1)
      printf(" ");
      else if (j < n && (i+j) < (n - 1))
      printf(" ");
      else if (j < n && (i+j) >= (n -1))
      printf("#");
      else if (j > n+1)
      printf("#");

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

    Why in line 7 you write int height; and not add the int at the beginning of line 10?

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

    Hi! my hashs it's not going as it should, and i made it perfetcly! What it could be?

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

    I didnt get the logical behind how the right pyramid print its hash, can you explain the logical of how it is printed, please?

  • @2jay_kun
    @2jay_kun 3 роки тому

    thanks so much for this

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

    What do each of the scenarios for printing the columns mean? if (j == n || j == n + 1 || i + j < n - 1)

    • @Anvea
      @Anvea  2 роки тому +2

      Hi! 10:10 onwards shows the breakdown of the pyramid and the scenarios for j ==n , j == n+1 and i+j < n -1. That part shows the conditions that we need to print a space vs a hash. Hope the explanation in that segment helps!

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

      @@Anvea Thank you so much! I viewed this late at night and my brain was overloaded. I think things are starting to click. Thank you for posting these videos!

  • @professionalservicesolutio414
    @professionalservicesolutio414 3 роки тому +1

    this was a high level math

  • @dennissepulveda578
    @dennissepulveda578 2 роки тому +1

    Wow, that is just ridiculous, that problem set. I sure hope and pray software programming doesn't rely so much on math and equations and the like, because I'm terrible at it and will be a persistent nightmare for me.

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

    I dont get row 20 someone plz explain

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

    Man, after watching this I get to the conclusion that I am slow hahaha Thank you for the video :)

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

    Thanks, I discovered where was my error 🙂

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

    yo that visualization and getting the pattern was so smart wtf or could also be the fact that im dumb af but anyway this is a great help and have broaden my horizons further thank you

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

    Why J =3 @7.36?

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

    Why the +1 in (j==n || j==n + 1...)?

    • @Norse-Norse
      @Norse-Norse 9 місяців тому +1

      Because you are finding the current position of the space (j == n) and the position next to it (j == n + 1)
      so for example, if n = 5, then you will be finding position 5 and position 6.

  • @Александрраз-н8ф
    @Александрраз-н8ф 2 роки тому +1

    Im too dumb for this :((( have I any chance to be a programmer?

    • @JoaoVictor-jj5no
      @JoaoVictor-jj5no 2 роки тому +1

      I tought this too before but with time and practice everyone learn, you just have to keep trying, so as an answer to your question if you persist the chance of you becoming a programmer is a 101%

    • @JoaoVictor-jj5no
      @JoaoVictor-jj5no 2 роки тому

      @Abstract believe me I had a lot of difficult doing the Mario less exercise to, I think as we all begginers on coding is difficult in the start but then is going to be easier to do everything

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

      That is exactly how I feel right now! I also feel like someone is speaking to me in klingon and explaining to me the meaning of life, smh.

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

    Are you singaporean?