Skip to main content

Timeline for cs50 pset3 runoff tabulate

Current License: CC BY-SA 4.0

7 events
when toggle format what by license comment
May 17, 2022 at 10:46 comment added Philip F @yui i had the same problem and nearly the same typo... your comment made me check and find it :)
Aug 28, 2021 at 14:28 comment added Siddhant Jha Consider checking My answer for the problem he is facing in the code above cs50.stackexchange.com/a/41845/34124
Dec 7, 2020 at 21:18 comment added theonerishi the line "break;" stops the second loop once a vote has been added as only the highest preference of the voter should be counted unless the highest preference is eliminated in which case the the highest preference that has not been eliminated should be counted
Sep 13, 2020 at 15:51 comment added Dimi3 @yui I know this is an old post but would be awesome if you can help. For the tabulate function, I was doing check50 on this same code but without the line "break;" it didn't work. Yet with the line "break;" it does work. My question is, what does this "break;" line actually do here?
Feb 17, 2020 at 17:37 comment added yui thanks my intention was that if the first choice was eliminated, then r++ so the next rank would be checked. so the logic works out. however the issue was just a stupid mistake typo v for r. for (int r = 0; r < candidate_count; v++) cant believe i just saw that.
Feb 17, 2020 at 17:33 vote accept yui
Feb 17, 2020 at 3:02 history answered Chris CC BY-SA 4.0