Long JAN15 - One Dimensional Kingdoms

should i take a[i] and b[i] in increasing order
example:-
is
a[i]=2,1,4 is correct or not

Is increasing or decreasing input order mentioned in the problem statement anywhere ?

Do not assume something not written in problem statement.

1 Like