i have applied same logic to attic question of june cook of it was submitted in java but when i do it in c it is not submitted…it says wrong answer. why???
Kindly add links to your solutions.
You can find it easily
In your C code, you need to add 1 to the size of the char ip (and make it char ip) to accomodate for the ‘\0’ in case of a string of length 1000000.