Skip to content

Files

Latest commit

author
Shoaib Rayeen
Oct 8, 2018
9c5b9be · Oct 8, 2018

History

History

Longest Repeated Subsequence

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 8, 2018
Oct 8, 2018

Given a string, print the longest repeating subsequence such that the two subsequence don’t have same string character at same position, i.e., any i’th character in the two subsequences shouldn’t have the same index in the original string.

Input: str = "aabb"

Output: "ab"