Problems / 2D Dynamic Programming / Longest Common Subsequence
#112 Medium Time O(m·n) Space O(m·n) Animated

Longest Common Subsequence

Find the longest common subsequence of two strings.

LeetCode ↗
Approach: Dynamic Programming (2D)
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps