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 :)
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 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.
@@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 :)
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?
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!
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
@@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(" "); } }
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.
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 :)
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
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.
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... =)
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("#");
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!
@@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!
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.
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
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.
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%
@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
This is so helpful, if you have a Paypal or Patreon you should post it
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 :)
Singaporeans really are smart. Thank you for all the help.
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.
Hey man, how you're doing now? I'd like to know your progress
@@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.
@@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 :)
your voice and accent is lovely, for me it makes it all smoother and relaxing.
This was very helpful, thank you :)
Good Lord!! This girls good. Too good. The diagrammatic illustrations and all......simply the best.
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?
It's a normal feeling. The important thing in the end is your growth. Just keep learning and practicing.
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!
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
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
mano mano, achei um br
eu n consegui, a piramide nao sai certa, mas nao sei como arrumar pq ta literalmente igual
@@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("
");
}
}
Br aqui
Eu to completamente perdido nos exercícios, são absurdos para quem está começando aaaaa
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.
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 :)
As good as it gets when explaining goes. , thx for the detailed walkthrough.
i love your approach easy and nice
thank you
what a wonderful tutorial!
In line 15 why i < n and not not i = n - 1? Rows should always be one less than height.
really help full
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
The cs50 course for introdution to the newly computer science, the homework level is on a different dimension.
I have to agree with you :’)
8:32 I don't get why j > n + I + 2 changes to
j > n + I + 3
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!
omg thank you!!!!
I tried running this code and kept getting "use of an unidentified integer "i" on line 18. Anyone know why?
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.
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... =)
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("#");
Why in line 7 you write int height; and not add the int at the beginning of line 10?
Hi! my hashs it's not going as it should, and i made it perfetcly! What it could be?
I didnt get the logical behind how the right pyramid print its hash, can you explain the logical of how it is printed, please?
thanks so much for this
What do each of the scenarios for printing the columns mean? if (j == n || j == n + 1 || i + j < n - 1)
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!
@@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!
this was a high level math
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.
I dont get row 20 someone plz explain
Man, after watching this I get to the conclusion that I am slow hahaha Thank you for the video :)
Thanks, I discovered where was my error 🙂
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
Why J =3 @7.36?
Why the +1 in (j==n || j==n + 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.
Im too dumb for this :((( have I any chance to be a programmer?
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%
@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
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.
Are you singaporean?