why we are using string to take number input not array?
In the question it is mentioned that the number N is given in the string format, so that’s the reason we took input(N) as string.
why we are using string to take number input not array?
In the question it is mentioned that the number N is given in the string format, so that’s the reason we took input(N) as string.