💡 Minimum Jumps Required

what is wrong in this logic

hi pritika your code is almost correct only thing is that you have missed one case that is when a[i]=0;
i have correct your code you can see it

1 Like