Not passing some test cases
@Sunkumsav you have to input array of integers and also size but you are inputting a string check it
have a look again sir i have modified it
updated code? share using cb ide
@Sunkumsav you have to pass n to the function too as you are doing j=n-1
corrected code
dont forget to hit like and mark resolved if cleared
1 Like