Getting two test cases wrong
Hi @Jun18APP0112,
Try modifying ur code a bit.
If input={3,2,1,4}, output should be 1 1 1 4 but ur code will give output as 1 1 1 2.
Hope dis helps.
If u face any problem, post it here.
Hi @Jun18APP0112,
Try modifying ur code a bit.
If input={3,2,1,4}, output should be 1 1 1 4 but ur code will give output as 1 1 1 2.
Hope dis helps.
If u face any problem, post it here.