Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

Help understanding Question MAXPR

$
0
0

Does the Question say that the sub sequence s[1],s[2], .....,s[k] be the continuous elements of array a, but not randomly picked elements in an ascending order.

For example

Let A= { 1,2,3,4,5,6,7,8}

then

Sub sequence possible can be S={ 2,3,4,5} But S={ 2,4,7 } is NOT possible.

just confused about sub sequence, cleared about the AP. Thanks


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>