My code works fine for n=7 but it goes wrong for n=8

please check my code

I tried running this same code used in this lecture and I found out that this is not efficient for even number of input

Hi Arvind,
Your code is right and this question is for odd numbers only.

1 Like