Whats wrong in my code?
Minimum Jumps Required
@harshitgrover12 you have returned INT_MAX when i==0 and passes i as 0 from your main function hence it is directly giving you INT_MAX as the ans without going forward.
still wrong answer
Is there something wrong in my logic?
@harshitgrover12 i think your recursion is failing somewhere,could you try to build a logic without recursion where you simply fill your dp array.