Challenge: Shuffle Integers

In this lesson, we will solve a challenge on shuffling a list of 2n integers without using extra space.

Shuffle integers

Suppose you have a list of size 2n2^n (size of the list is a multiple of 2) arranged as:

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy