Tag: Memoization

Teaching Kids Programming – Minimum Operations to Reduce X to Zero (Two Pointer + Top Down Dynamic Programming Algorithm + Recursion with Memoization)

Teaching Kids Programming: Videos on Data Structures and Algorithms You are given an integer array nums and an integer x. In one operation, you can either remove the leftmost …

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 – Check if There is a Path With Equal Number of 0’s And 1’s (Maze, Recursion, Memoization, Dynamic Programming)

Teaching Kids Programming: Videos on Data Structures and Algorithms You are given a 0-indexed m x n binary matrix grid. You can move from a cell (row, col) to …

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 …