Skip to main content
5 events
when toggle format what by license comment
Jun 17, 2020 at 9:04 history edited CommunityBot
Commonmark migration
Feb 11, 2014 at 7:25 comment added warrenm Iterate over the string, accumulating a count of instances of each alphanumeric character. Then, iterate over all alphanumeric characters in alphabetical order, writing out the start of each compact range and, if appropriate, a dash followed by the end of the range. If this is not the first range that's been written, add the comma-space separator. Code must be embedded in a main() function with appropriate headers (stdio, string, ctypes) included, so I kinda cheated there.
Feb 11, 2014 at 6:42 comment added Justin Can you add a small explanation?
Feb 11, 2014 at 6:31 review Low quality posts
Feb 11, 2014 at 6:42
Feb 11, 2014 at 6:15 history answered warrenm CC BY-SA 3.0