Non-continuous subsequences: Difference between revisions

m
added related tasks.
m (→‎{{header|zkl}}: fix bare tag)
m (added related tasks.)
Line 8:
Note: Subsequences are defined ''structurally'', not by their contents.
So a sequence ''a,b,c,d'' will always have the same subsequences and continuous subsequences, no matter which values are substituted; it may even be the same value.
 
 
'''Task''': Find all non-continuous subsequences for a given sequence.
 
 
Example: For the sequence   ''1,2,3,4'',   there are five non-continuous subsequences, namely:
;Example:
Example: For the sequence   ''1,2,3,4'',   there are five non-continuous subsequences, namely:
::::*   ''1,3''
::::*   ''1,4''
Line 18 ⟶ 21:
::::*   ''1,2,4''
 
 
'''Goal''': There are different ways to calculate those subsequences. Demonstrate algorithm(s) that are natural for the language.
;Goal:
There are different ways to calculate those subsequences.
 
'''Goal''': There are different ways to calculate those subsequences. Demonstrate algorithm(s) that are natural for the language.
 
{{Template:Strings}}
<br><br>
 
=={{header|Ada}}==