Java icon indicating copy to clipboard operation
Java copied to clipboard

Adding Longest Common Subsequence problem of DP

Open Rajat-Sharma1710 opened this issue 2 years ago • 4 comments

LCS Problem Statement

Given two sequences, find the length of longest subsequence present in both of them. A subsequence is a sequence that appears in the same relative order, but not necessarily contiguous. For example, “abc”, “abg”, “bdf”, “aeg”, ‘”acefg”, .. etc are subsequences of “abcdefg”.

Rajat-Sharma1710 avatar Oct 07 '22 05:10 Rajat-Sharma1710

I have added the solution to this problem in best time complexity.

Rajat-Sharma1710 avatar Oct 07 '22 05:10 Rajat-Sharma1710

Sir,Can You Please Assign this Task to me?

Atharva1520 avatar Oct 10 '22 15:10 Atharva1520

I have doing competitive programming for a long time. So I would be able to solve this dp problem in the most optimized way. please assign this task to me.

Arko27 avatar Oct 12 '22 19:10 Arko27

Hello Sir, please assign this issue to me

RishikaKant avatar Oct 19 '22 13:10 RishikaKant

Hello Sir, please assign this issue to me

HarshitaSingh828 avatar Oct 26 '22 14:10 HarshitaSingh828

It's already implemented here https://github.com/TheAlgorithms/Java/blob/e96f567bfc6e980dc5c4c48ccf185d7f7c7108ab/src/main/java/com/thealgorithms/dynamicprogramming/LongestCommonSubsequence.java

siriak avatar Jan 05 '23 13:01 siriak