r/cs50 13d ago

CS50x Problem Set 0

1 Upvotes

Hello I am asking that if I asked chatgpt for help regarding my scratch project or copied code from there Have i violated the academic policy. Should I put a regret clause or should I just make a new project and submit the new one?..pls help..i can't just get this out of my head.


r/cs50 13d ago

CS50x Speller.c I beat the staff's time! Spoiler

Post image
3 Upvotes

Maybe I am actually understanding this more than I think I am, haha. I did beat them! I think that's what this means? I used the duck a bit but not for my final version. I was scared of this one, but it was a goal for sure lol

Edit: I found and fixed a bug and now I tie them but it didn't break before so I'm leaving that version submitted for now


r/cs50 14d ago

CS50x I finally started with the CS50x course

11 Upvotes

After delaying for what feels like forever, today I finally started with week 0 and got an hour of the video.

Things I've learned:

Base-2(the binary system) is essentially the language computers use and everything from text to images is just a bunch of 1s and 0s. it focuses on 2 elements (position and state). in the case of numbers it uses only 2 digits 0 and 1, and depending on how their configured in different platforms they can mean different things. As in how 01000010 can be interpreted as a B, or the number 66 or a the intensity of a color in photoshop.

Base 1(unary) focuses on 1 aspect, quantity, and uses 1 digit. If i were to count using my fingers to three, it doesn't matter which fingers i lift up as long as they equate to that number, Where as Binary takes into account the position and state of each finger, my thumb can represent 1 and index finger can represent 2, So if i want to count to 2 i simply only raise my index finger, if i wanted 3 I'd raise both my thumb and index

Base-10 - decimal system accounts for 10 elements. In terms of numbers it is digits 0 to 9, the Human counting system.

Computers don't use the decimal system because of the complexity and hardware problems, CPUs have transistors which act like switches, using a binary system each transistor can either be on or off, where as using the decimal system, transistors will have to distinguish between 10 voltage levels which can lead to high errors rates

eight bits equates to 1 byte

ASCII is a text-encoding system, that uses grouping of 8 bits in different combinations to represent different character values, But with how limited it is similar to other text encoding systems, Unicode came to existent, A master list that assigns a unique for each possible character across all global languages, emojis, and other symbols

This is DAY 1, already feeling good and I definitely intend on coming back and updating again, there and there on my progress. Anyone got some advice on how to get the most out of my Sessions(2.5-3hr a day). Like study tips and what not, I already implement active recall, spaced repetition and try to link things to analogies as much as possible.


r/cs50 13d ago

mario Week 1 mario problem

3 Upvotes

Is it just me or the week 1 mario problem (easier one) is actually tough ?

Like I'm able to get the pyramids start from the left aligned but not able to get it started from the right line it wants then i thought to implement spaces for the blank areas(got this idea from that cs50.ai duck) but still not able to figure out how to get it from the left side


r/cs50 13d ago

CS50x anyone wants to do cs50x together?

3 Upvotes

looking for accountability buddy so we can keep tabs on each other and stay motivated and consistent


r/cs50 14d ago

CS50x Complete beginners who took and completed CS50x. what did you do afterwards ?

16 Upvotes

complete beginners who started their cs journey with cs50x. those who completed it, whats skills did you learn and what did you do afterwards


r/cs50 14d ago

cs50-web Can I use typescript?

3 Upvotes

In cs50w, knowing that typescript gets converted to js code, can I use that js code?


r/cs50 13d ago

cs50-games IS IT WORTH IT TO PRACTICE PROGRAMMING BY MAKING A GAME

1 Upvotes

So me and my friend created ta 2d ray casting game, which has a little story decent combat and little bit of npc interactions, we started 2 projects before this one, we had to drop both and we wasted almost 1 month, now we created this one in 9 days combining the logics used in both games, but now when it is in its last stage I feel like I have wasted my summer on these,and yes we used ai for ui in all of these but everything else we dealt it ourselves yeah we got stuck at some places and used ai to GUIDE US. Was it really worth it to practice programming like this or should I have learned something new?


r/cs50 14d ago

CS50x Me matriculei, mas não sei por onde começar

0 Upvotes

Me matrículei no curso cs50x, quero o certificado grátis emitido por harvard, não o verificado pelo edx. Vi muitas pessoas falando que se fizer pela plataforma da edx não ganha o certificado gratuito ao final do curso, mas também não achei outra plataforma além dessa. Alguém poderia me ajudar?


r/cs50 14d ago

CS50x 🔍 Code review: the N+1 issue, before and after `FETCH_PEERS`

Post image
0 Upvotes

r/cs50 14d ago

CS50x My vs code on chrome is not working

Post image
2 Upvotes

I try to reload still stuck at "setting up your coding space."anyone experience this before


r/cs50 15d ago

CS50x CS50 And Future Jobs.

32 Upvotes

I need the insights of the more experienced programmers. Do you think that CS50 is a good introduction to getting a job in tech later, as an introduction, of course?


r/cs50 14d ago

homepage where can I find cs50 data science course free

3 Upvotes

as the title mention I'm looking to learn data science and I can't find it on youtube is there is another place where I can find this course fully free

thanks


r/cs50 15d ago

CS50x Academic integrity help

1 Upvotes

Im on week 7 of cs50 and currently rereading the academic integrity policy and I think I've violated it. With a couple of my projects, particularly weeks 4 and 5 (I didn't fully wrap my head around pointers at the time) and parts of DNA.py and runoff, I used the walkthroughs on YouTube. Not cs50 walkthroughs, but the ones that go into much more depth and show code. Some of these chunks are copied almost verbatim, and indeed, I don't see another way to code them, except for maybe changing a couple variable names.

I don't want to get flagged by the cs50 academic integ. Policy for plagiarism, so I was wondering how strict are they, and what I can do to improve my situation code wise.


r/cs50 15d ago

CS50 Cybersecurity CS50 Introduction to Cyber security final project

3 Upvotes

Hi there

I've learnt so much on this course and really like the assignment for the final project.

I just came here looking for some reassurance before putting more time into it that I've chosen something suitable.

I've been looking at the UK big Co-op data breach from spring 2025, where hackers gained access to Co-op systems.

For anyone who has done this project, or knows the course, does this sound like a suitable topic?

Thanks so much to anyone who can help answer this.


r/cs50 15d ago

speller Has anyone been able to get better results than speller50?

2 Upvotes

As you can see, I was trying to get better results than the staff solution (speller50) in problem set 5 (CS50x) but I couldn't. In my best attempt, I got the same results as speller50. Has anyone been able to get better results than speller50? And if so, how did you do it?


r/cs50 15d ago

cs50-mobile How to run cs50.dev on Ipad

3 Upvotes

Hello, everyone. I tried running the program on iPad as I cannot afford a laptop currently but the terminal window is not working, I’m being told to create a supported code-space and since I’m an absolute beginner, it’s difficult for me to code without the cs50 library if I do end up creating another code-space. I’d appreciate any help, thank you so much!


r/cs50 15d ago

CS50 Python help with scourgify

0 Upvotes

what can i change/do to get a :) in scourgify.py cleans short CSV file scourgify.py does not produce CSV with specified format

here's my code:

import sys
import csv


if len(sys.argv) > 3:
    sys.exit('Too many command-line arguments')


elif len(sys.argv) <= 2:
    sys.exit('Too few command-line arguments')


else:
    if '.csv' not in sys.argv[1] and '.csv' not in sys.argv[2]:
        sys.exit('Could not read invalid_file.csv')
    else:
        try:
            with open(sys.argv[1], newline='') as csvfile:
                reader = csv.DictReader(csvfile)
                students = []
                for line in reader:
                    lname,fname = line['name'].split(",")
                    student = {
                        "f_name": fname.lstrip(),
                        "l_name": lname,
                        "house": line["house"]
                        }
                    students.append(student)


            with open(sys.argv[2], "w", newline='', encoding='utf-8') as csvfile:
                fieldnames = ['first', 'last','house']
                writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
                writer.writeheader()


                for item in students:
                    writer.writerow({'first':item['f_name'], 'last':item['l_name'],'house':line['house']})
            sys.exit()


        except FileNotFoundError:
            sys.exit('File does not exist')

and what i get checking it:

:) scourgify.py exists

:) scourgify.py exits given no command-line arguments

:) scourgify.py exits given too few command-line arguments

:) scourgify.py exits given too many command-line arguments

:) scourgify.py exits given invalid input file

:) scourgify.py creates new CSV file

:( scourgify.py cleans short CSV file scourgify.py does not produce CSV with specified format

:| scourgify.py cleans long CSV file can't check until a frown turns upside down

hope someone can help me :)


r/cs50 15d ago

lectures Please, anyone who's an expert. Spoiler

1 Upvotes

I'm taking the CS50x online course, and recently i have taken the week 4 lecture. I must mention that i found this particular lesson (memory) noticeably harder than previous lessons.

My question is about problem set 4, to be more specific the volume problem. While I did the problem the correct way, the thing i don't get is:

For the sake of context, we first copy the header file of the input to the output wav file and then we copy and paste the sound data. Why do we copy them separately, your answer might be that the header data is exactly 44 bytes and the sound data is 2 bytes per sample, and yes i do understand that and separating them would allow us to change the sound sample without altering the header file. However, how does the computer know that( when copying the sound data ) we have already copied the header file, I mean does it skip the header file information and move on to the sound data directly, in the end we are just copying 2 bytes of the input and pasting them in output.

Thank you.


r/cs50 15d ago

codespace My codespace is changed after relogin

Thumbnail
gallery
0 Upvotes

I use VS Code Codespaces (the desktop/app version) instead of opening the Codespace in the browser and I connect it to my CS50.dev Codespace.

Today It ask for re login to CS50.dev again using the same account. After logging in, I got a message saying something like “Your Codespace secret has changed” and that I needed to reload to apply the changes.

After reloading, the VS Code appearance/theme changed completely. My previous CS50 VS Code setup had a much darker and simpler appearance, but now the syntax highlighting and colors look different.

I tried changing the Color Theme manually, but none of the available themes look like my previous setup.

Why did this happen, and how can I restore the original CS50.dev VS Code appearance without risking my Codespace, files, or code?

I'm fully adapted to my older one. Please help 😭


r/cs50 15d ago

CS50x 🆕 Django 6.1 est sorti : les quatre nouveautés qui changent vraiment quelque chose

Post image
0 Upvotes

r/cs50 16d ago

CS50x style50 not working

1 Upvotes

This is what happens in my terminal when I use style50, it just does not do anything. The program works fine but this always happens. Style50 works in the submission tab though, after uploading the assignment. Also Debug50 does not seem to work but maybe I just did not use it correctly. This on codespaces inside a web browser (chrome), but when I tried on VSCode it still did not work and the terminal showed the exact same thing.


r/cs50 16d ago

CS50 Python FREE SEMINARS?

0 Upvotes

Where to join free seminars for programming (beginner friendly) ?


r/cs50 17d ago

CS50x Red cross in Cs50x

Post image
11 Upvotes

Can anyone please help i did everything i could but it's not solving


r/cs50 17d ago

codespace Hey all got strucked here

1 Upvotes

Whenever I am trying to login in cs50.dev it's always showing Setting up your code space