Norway


Given a . arrange the list in manner of first and last . Examples: Input : 1->2->3->4->5->6->7->8 Output :1->8->2->7->3->6->4->5 Input :->11->15->13 Output… Read More »

The post Rearrange a linked list in to alternate first and last element appeared first on GeeksforGeeks.



Source link

LEAVE A REPLY

Please enter your comment!
Please enter your name here