Topic: Greedy Algorithm Problem / Level: intermediate

Problem: Given an array of integers, rearrange the elements so that every adjacent pair of elements has the largest possible difference.

Run the code to see the output here...