Talk:Range expansion: Difference between revisions

Content added Content deleted
m (→‎Spaces in the list: typo I only noted after saving)
(→‎Spaces in the list: Added a note; also, the signature was missing)
Line 13: Line 13:


The examples are all without spaces in the list, e.g. "1, 3-6". I guess this means that solutions which don't allow for spaces are correct, right? What about the converse: Would an example which does allow for spaces be incorrect? In other words: Is accepting spaces mandatory, optional or forbidden?
The examples are all without spaces in the list, e.g. "1, 3-6". I guess this means that solutions which don't allow for spaces are correct, right? What about the converse: Would an example which does allow for spaces be incorrect? In other words: Is accepting spaces mandatory, optional or forbidden?

BTW, my C++ code accepts whitespace between numbers and commas/range dashes as well as at the beginning and end (the latter is especially handy for reading directly from standard input, because with normal usage there's always a line feed at the end) --[[User:Ce|Ce]] 09:12, 17 July 2010 (UTC)