I++ vs i+1 difference showing wrong test case

@ 12:43, it is i+1;
on using i++ instead of that, it is showing me wrong answer, but when using i+1, instead, all test cases passing. why is it so? i++ is the exact same as i+1 right? or is there any difference in code meaning?

hi @sidharth.delhi12_20344cb0d809bedb
kindly share the code u are referring to

hi @sidharth.delhi12_20344cb0d809bedb
shall i consider that ur doubt is resolved as I haven’t heard from u for a long time…

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.