Zig Zag Sequence

  • + 0 comments

    " Now if we permute the array as [1,4,5,3,2] , the result is a zig zag sequence. " This will NOT be the resutl given the input in the example. So it was a very confusing exmaple to give. If you first sort the array clearly this isn't a good output.