Open In App

Subsequence meaning in DSA

A subsequence is defined as a sequence that can be derived from another string/sequence by deleting some or none of the elements without changing the order of the remaining elements.

For example: Let’s take “GeeksForGeeks”, GeeksF will be a subsequence of “GeeksForGeeks”.

Example of Subsequence

Properties of Subsequence:

How it is different from a Substring? 

To learn more about the differences, refer to this article.

Applications of Subsequence:

Advantages of Subsequence:

Disadvantages of Subsequence:

What else can you read?

Article Tags :