▲ 1 r/cs50
What do you guys find hard about Tideman?
I just completed Tideman.
I found sort_pairs the hardest as I had to implement a selection sort from scratch.
Ironically, lock_pairs didn't take me that long cause when I was writing pseudocode on paper it became very obvious to me that recursion is obviously needed (or at least very helpful) in traversing from one candidate to another to another to another.... stopping only when there are no more 'outward' arrows/that candidate you landed on creates a cycle.
Was js wondering if anyone else struggled on sort_pairs more than lock_pairs. print_winners was also abit tricky for me but maybe the way I wrote my loop was just awkward, but I guess it worked
u/Away_Understanding70 — 3 days ago