Odd number of elements

interview-questions
Tags: #<Tag:0x00007f24269da200>

#1

question: 1->2->3->4->5->N
2->1->4->3->5->N is this correct


#2

Yeah!
For odd number of elements…just leave the last element as it is