We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Two questions: i)Is the order of jump important , and ii)the starting point is step 1 or step 0? (I am assuming, as of now, that it is step 1) example: one has to go to step 3 starting from 1. possible paths: 1->4 (jump 3) 1->2->4(jump 1,2) 1->3->4(Jump 2,1) 1->2->3->4(Jump 1,1,1,) Now, case 2 and case 3 : are there two considered to be different ? Also, it will be helpful if anyone can kindly explain the statement "the sum of numbers which are formed by first K digit and last K digits of number of ways." with an example.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Journey to Mars
You are viewing a single comment's thread. Return to all comments →
Two questions: i)Is the order of jump important , and ii)the starting point is step 1 or step 0? (I am assuming, as of now, that it is step 1) example: one has to go to step 3 starting from 1. possible paths: 1->4 (jump 3) 1->2->4(jump 1,2) 1->3->4(Jump 2,1) 1->2->3->4(Jump 1,1,1,) Now, case 2 and case 3 : are there two considered to be different ? Also, it will be helpful if anyone can kindly explain the statement "the sum of numbers which are formed by first K digit and last K digits of number of ways." with an example.