Back to Questions

Longest Common Subsequence (LCS)

51.1K viewsAsked at Airbnb
Medium

Question Explain

Given two strings $text1$ and $text2$, return the length of their longest common subsequence. Use Dynamic Programming.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question
Longest Common Subsequence (LCS) - Interview Question