my code is not passing the second test case.
here is the code:
my code is not passing the second test case.
here is the code:
@Keshav99
Hello Keshav,
In line no -11
a)just replace < with <= and your code will work fine.
b)you forgot to read n.
its still not passing the second test case here is the updated code:
thanks : ) it worked !!