LeetCode MEDIUM 1143 Longest Common Subsequence Summary
Generated by Codex with GPT-5
Quick facts
- Difficulty:
MEDIUM - Problem: Longest Common Subsequence
- Topics:
String,Dynamic Programming
Problem gist
Given two strings, the task is to find the length of the longest sequence of characters that appears in both strings in the same relative order.
The characters do not need to be contiguous. For example, "ace" is a subsequence of "abcde" because a, c, and e appear in order, even though there are skipped characters between them.