0

I have an array that is already sorted in partitions of 4:

2, 23, 45, 55, 1, 4, 23, 74545, 75, 234, 323, 9090, 2, 43, 6342, 323452

What would be the most efficient way to sort this array? Note: the array size is always even and the program knows that every 4 elements are sorted.

2 Answers 2

4

I think you can use merge sort for problems like this.

Sign up to request clarification or add additional context in comments.

Comments

3

You might be able to use strand sort for this.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.