Inspite of correct code wrong testcase
@aryanraj
Hello Aryan,
your code is not correct.it is not giving correct result on given sample test case.
hint- there is a bug in loop of line 20.
just change n to n/2 in line no 20 and ur code works fine.
@aryanraj
Hello Aryan,
your code is not correct.it is not giving correct result on given sample test case.
hint- there is a bug in loop of line 20.
just change n to n/2 in line no 20 and ur code works fine.