My issue
for n=2, what about the set [1,4] , it is valid but according to the output, it is denied.
Problem Link: Construct Permutation Practice Coding Problem
for n=2, what about the set [1,4] , it is valid but according to the output, it is denied.
Problem Link: Construct Permutation Practice Coding Problem
here permutation means that the element in the array should be between 1 and n and all distinct