Given three integers N, A, and B, the task is to find a permutation of pairwise distinct numbers from 1 to N such that A… Read More
The post Find a permutation of 1 to N, such that A is minimum in left half and B is maximum in right half appeared first on GeeksforGeeks.