Difference in ascii codes


why in solution extra space is taken
passed all test cases, am i missing anything ?

Your code is perfectly fine.

@dhairya16 which solution you are talking about?

view editorial solution

@dhairya16 I have seen the editorial on hackerBlocks it does not use any extra space, If you are talking about some other editorial, then please resolves this doubt and raise doubt on that editorial.(I cannot access the doubt unless their is a request)