Interviews Questions, Algorithms, Aptitude, C Interview Program, C Theory Question, Aptitude Tricks, Test Series,

Saturday, 27 April 2019

Tricky Interview#2

Question:

Write a function that moves the last element to the front in a given Singly Linked List.

 For example:

Input Linked List is 1->2->3->4->5.
Output Linked List 5->1->2->3->4.

Solution:

0 comments:

Post a Comment