Zig Zag Sequence

  • + 0 comments

    The example provided in description seems misleading, for[2,3,1,5,4]the correct output is [1,2,5,4,3] , however in description we have [1,4,5,3,2] (altough it is mentioned it is a zigzag sequence).

    It would be better the descrption updated to say: the correct expected sequence in this case is [1,2,5,4,3]