why in solution extra space is taken
passed all test cases, am i missing anything ?
Difference in ascii codes
Your code is perfectly fine.
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)