Actually I was printing a new line after the output, but then I thought that was the problem.
Anyways you are correct, the problem was that it was printing a new line at the beginning of the output for some inputs. I corrected that by checking the size of the char vector. So now its AC!
Thanks for ...
Search found 2 matches
- Fri Oct 05, 2012 10:27 pm
- Forum: Volume 1 (100-199)
- Topic: 156 - Ananagrams
- Replies: 30
- Views: 7097
- Fri Oct 05, 2012 12:18 am
- Forum: Volume 1 (100-199)
- Topic: 156 - Ananagrams
- Replies: 30
- Views: 7097
156 Ananagram WA? WHY?
DELETED!