Closed AvivBlattner closed 1 year ago
Your change gives an incorrect output for AABBC
. One correct answer is ABCBA
, however, your program outputs ABCCBA
.
In my code, odd
represents the character which appears an odd number of times, with 0 for A
, and 25 for Z
. I am only printing the character once on Line 30, since the other freq[odd] - 1
times are accounted for in the loops before and after it.
Support odd > 1