A
A
Alexander2020-10-29 21:05:27
C++ / C#
Alexander, 2020-10-29 21:05:27

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

1 answer(s)
O
OCTAGRAM, 2020-10-29
@Shemapp

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 question

Ask a Question

731 491 924 answers to any question