Tag: dp

Teaching Kids Programming – Find Max Number of Uncrossed Lines (Longest Common Subsequence) via Top Down Dynamic Programming Algorithm (Recursion + Memoization)

Teaching Kids Programming: Videos on Data Structures and Algorithms You are given two integer arrays nums1 and nums2. We write the integers of nums1 and nums2 (in the order …

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 …