help me finding the error

What is wrong with my code ?? plz help me to find this out
Question
Solution

It doesn’t produce the correct graph for N=9.

I think what you’re trying to do is essentially what i did . Have a Look

2 Likes

@sarvagya3943 , yeah i got that now , i don’t know what was going on in my mind when i was solving that question during contest . feeling very stupid :frowning: