Coolguy and Two Subsequences

  • + 1 comment

    In the pseudocode , it was given the range of a varies from 1 to n.

    a->[1,n]

    but in the explanation, it was calculated till the value of 2 whereas the n is 3.

    Someone pls clarify this problem statement