I still need the answer !
Any help would be appreciated .
(Sorry for spam)
The only thing that jumped out at me was that
if (input [i + 1] != '0' && i != length - 1)
if ( i != length-1 && input[i+1] != '0' )
Last edited on
I will test it .
BUT what is the difference ?
Do their priority matter ?
The order matters very much, if you check the index before checking if you even *can* check it in the first place, you will have problems.