seaperm2 Doubt

What are the constraints over the value of p[i]?And also tell that in the input q[1],q[2] is serially given or its random shuffle like q[2],q[1],q[3] is given? Somebody help,i have already got 3 WA.

1 Like

q[4],q[2],q[1],q[3] IS a random
shuffle of q.

Source : Clarification in SEAPERM2 - general - CodeChef Discuss