Post by Ashif HarjiYou should be able to test these cases and any others using the
reference executable. FYI, I believe there is an error in your output
below.
ashif
Post by xewangPost by xewang'AAA' 'AAA AAA'A AAA' "AAA" !AAA AAA!
AAA
AAA
AAA'A
AAA'
AAA
!AAA
AAA
is this right?
Also if we have A?A ?AAA AAA?
we have
A?A
?AAA
AAA
right?
what about ???
its just ??
He did have a good point with ???
What is the program supposed to return when it is given just
punctuation. My program fully works except for this situation.
The given solution produces a single ?
But my solution produces a blank line
I think my solution makes more sense since all punctuation at the end or
beginning of a word should be removed and there is no word.
Or do we not have to consider about this case?