@rohit , I think we will get some cases where greedy won't work check out its giving 3 jumps still
https://ideone.com/6UWW1 checked in hurray , if anything wrong do send me over gmail ? *Regards Shashank Mani "Computer Science Is Awesome So Why I Write Code" Computer Science Birla institute of Technology Mesra * -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/Rerf5mzR7XcJ. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.