Challenge: Shuffle Integers

In this lesson, you will solve a challenge on shuffling an array of 2n integers without using extra space.

Shuffle integers

Suppose you have an array of 2n2^n integers arranged as:

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.