Zigzag Conversion of a List

Convert a given list of integers into a zigzag pattern (a sequence where numbers are alternatively higher and lower).
[4, 3, 7, 8, 6, 2, 1]
Total : 0 Discussion
Login