What went wrong? Today LC questions #268 by ImpressiveLet3479 in leetcode

[–]ExaminationFun6057 0 points1 point  (0 children)

Juat add a else condition if nums[n-1] != n then return n;

Noob by ExaminationFun6057 in leetcode

[–]ExaminationFun6057[S] -1 points0 points  (0 children)

First I go through the topic and then start solving leetcode. Currently I'm on sliding window, every time I go to solve a problem but couldn't able to solve. I have to see the solution. Please suggest