diff --git a/C++/Minimum number of jumps.cpp b/C++/Minimum number of jumps.cpp new file mode 100644 index 0000000..1c7cd90 --- /dev/null +++ b/C++/Minimum number of jumps.cpp @@ -0,0 +1,48 @@ +#include +using namespace std; + + + // } Driver Code Ends +// Function to return minimum number of jumps to end of array + +class Solution{ + public: + int minJumps(int arr[], int n){ + int jumps=0,curfar=0,curend=0; + for(int i=0;i=n-1){ + break; + } + + } + if(curend>t; + while(t--) + { + int n,i,j; + cin>>n; + int arr[n]; + for(int i=0; i>arr[i]; + Solution obj; + cout<