Tag: Number of Ways

Teaching Kids Programming – Number of Ways to Stay in the Same Place After Some Steps (Top Down Dynamic Programming Algorithm, Recursion with Memoization)

Teaching Kids Programming: Videos on Data Structures and Algorithms You have a pointer at index 0 in an array of size arrLen. At each step, you can move 1 …

Teaching Kids Programming – Number of Ways to Reach a Position After Exactly k Steps (Combinations + Math + Dynamic Programming Algorithms)

Teaching Kids Programming: Videos on Data Structures and Algorithms You are given two positive integers startPos and endPos. Initially, you are standing at position startPos on an infinite number …