Answer the question
In order to leave comments, you need to log in
How to understand subsequence?
For example, there is a sequence of pairs. This is clear. What does subsequence mean? How is it implemented in C++?
Answer the question
In order to leave comments, you need to log in
This is any sequence consisting of a subset of the elements of the sequence that preserves their order.
As you come up with, so it will work. A vector or array of booleans can specify which elements of a sequence are selected to participate in a subsequence. Or a set of indexes of elements. Or an increasing array/vector of indices.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question