Discussion:
a4q1 how many extra characters will be given
(too old to reply)
Zikun Xu
2011-07-01 12:50:16 UTC
Permalink
how many extra characters will be given in a line?
my solution can only read one extra character. even though there are
more than one characters, my program will still treat them as a single
character.

Do I need to worry about such case?
Ashif Harji
2011-07-01 19:40:22 UTC
Permalink
Post by Zikun Xu
how many extra characters will be given in a line?
my solution can only read one extra character. even though there are
more than one characters, my program will still treat them as a single
character.
Do I need to worry about such case?
Yes, you must handle multiple extra characters per line.

You cannot make any assumptions about the number of characters on a line.
In fact, some of the examples given in the assignment have more than one
extra character per line.

ashif

Loading...