In this Editorial for Input 9999 the output is coming 9999 instead of 9000
Mistake is in the below section of given code :
for (j = 0; j < i; j++) {
if (arr[j] >= 5 && arr[j] != 9) //Invert this digit.
arr[j] = 9 - arr[j];
}
I am sharing the editorial code Link : https://ide.codingblocks.com/s/80523
Please Resolve this mistake as soon as possible.
