Next | QOTW Retrospective | 14 |
Many people seem to spend too much effort on weird edge cases
Example: Convert (1, 2, 4, 5, 6) to "1-2, 4-6"
Or should it be "1, 2, 4-6"
Or what if the input list contains repeats?
Should (3, 2, 1) become "3-1"?
There was a lot of discussion about this on the list
But then many submitted programs failed even straightforward test cases
Next | ![]() |
Copyright © 2003 M. J. Dominus |