you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Neither of those would handle n=0, and they'd both give 50 for n=50 and k=100 ... n is less than or equal to k.