Number of Ways to Reach a Position After Exactly k Steps solution leetcode – You are given two positive integers startPos and endPos.
Number of Ways to Reach a Position After Exactly k Steps solution leetcode – You are given two positive integers startPos and endPos. Initially, you are standing at position startPos on an infinite number line. With one step, you can move either one position to the left, or one position to the right. Number of Ways to Reach a Position After Exactly k … Read more