cs50 / problems

Checks for check50
134 stars 227 forks source link

Update sort_pairs test for tideman. Resolves #172 and comment on #37 #216

Closed RemArcAble08 closed 7 months ago

RemArcAble08 commented 8 months ago

Now, starts the unsorted array of pairs in the worst case scenario. Previously, just one swap would have correctly sorted the pairs, meaning many faulty sorting implementations could "accidentally" get the right answer.

rongxin-liu commented 7 months ago

172

rongxin-liu commented 7 months ago

@RemArcAble08 This looks good, thanks! Since 2023/x is now considered stale, please branch off from 2024/x and make a PR for it instead. I will go ahead and merge the new one.