How to store -ve value in input string

C++ solution in editorial doesn’t modify the input string rather it just prints solution accordingly.
Like in Java solution, how can we add -ve value into the string. -ve values are not in ASCII
So how can we do this?

hi @anujeet.s,
you can check the difference if negative add “-” directly to the string
eg s += “-”

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.