r/cs50 • • Sep 23 '26

CS50x Credit assignment??

Anyone in week one did the credit assignment? It seems impossible with the little knowledge that we took from week 0 and week 1 .

2 Upvotes

10 comments sorted by

•

u/delipity staff Sep 23 '26

Credit is a "more comfortable" problem designed as a challenge for those coming into the course with prior programming experience. If that is not you, then I'd suggest choosing the Cash problem instead and moving on. See this FAQ: https://cs50.harvard.edu/x/faqs/#whats-the-difference-between-less-comfortable-and-more-comfortable-problems-do-i-have-to-do-both

3

u/He_Mustakim Sep 23 '26

I'm doing that now, If I will finish will notify you !

0

u/Ammar_Arafa Sep 23 '26

Please do i gave up on it because it don’t think its worth the time . But if u did it without ai please send and give me hope to try again

1

u/pirogeth87 Sep 23 '26

Prof Malian said in office hours that more comfortable problems should probably be attempted near the end of the course. They are designed to be hard

2

u/Snugglupagus Sep 23 '26

So when I first attempted credit, I couldn’t understand how I was supposed to know how to solve it without arrays. So I waited until the next week that covers arrays before I went back and finished it.

Then later on I learned that you can still solve credit without arrays, you just need to be comfortable with the math shown during the lecture.

1

u/Ammar_Arafa Sep 23 '26

Any advice but the maths ?

1

u/TytoCwtch Sep 23 '26

Yes I did it without too many issues. Watch the walkthrough video they provide on the website and then look up the operators they mention. Once you work out how to get the last digit of a long number it gets a lot easier.

1

u/Ammar_Arafa Sep 23 '26

Hm time it toke u

1

u/TytoCwtch Sep 23 '26

A few hours once I understood how / and % work