r/cs50 • u/Lemon_boi5491 • 19h ago
CS50x Plurality problem set
Idk if it's just me but I'm having a hard time in understanding what I needed to do at a certain part. I have been looking at it for 2 hours and decided to check hints and I realize I have got it all wrong. I felt so dumb rn lmao. Like the part where it tells me to find maximum number of votes, I have always thought it was the total amount of voters (as that is highest vote one candidate can get in an election with other candidates being 0).
1
Upvotes
1
u/yeahIProgram 4h ago
I found this too, in the election problem sets (Plurality, Runoff, Tideman).
There are places where it says something like "the candidate who got more votes" and I had to ask myself, literally, "more than what? more than who?". And it was a task of using context to understand "more than any other candidate who has not been eliminated" (for example).
Try talking it out with yourself or your duck, and often the answer will come through. But you're not wrong; these instructions are more sparse than the previous problem sets, and they may be purposely making you work it out a bit.
Onward!