D26: Longest Common Subsequence

Опубликовано: 14 Декабрь 2024
на канале: Coding Blocks
161
4

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

A subsequence of a string is a new string generated from the original string with some characters(can be none) deleted without changing the relative order of the remaining characters. (eg, "ace" is a subsequence of "abcde" while "aec" is not). A common subsequence of two strings is a subsequence that is common to both strings.

https://leetcode.com/explore/challeng...