flâneur — a map of the web's best reading

Longest Common Subsequence | DP-4 - GeeksforGeeks

geeksforgeeks.org · 8,469 words · saved by 1 readers

A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.

Longest Common Subsequence (LCS) - GeeksforGeeks Courses Tutorials Interview Prep DSA Tutorial Interview Questions Quizzes Must Do Advanced DSA System Design Aptitude Puzzles Interview Corner DSA Python Longest Common Subsequence (LCS) Last Updated : 13 Apr, 2026 Given two strings, s1 and s2 , find the length of the Longest Common Subsequence. If there is no common subsequence , return 0 . A subsequence is a string generated from the original string by deleting 0 or more characters, without changing the relative order of the remaining characters. For example, subsequences of "ABC" are "", "A",

Explore this link on the map →

related reading