Question: Describe in pseudocode the algorithm ReversePart, that gets as input a singly linked list L and indices x and y (0 x y). The algorithm

Describe in pseudocode the algorithm ReversePart, that gets as input a singly linked list L and indices x and y (0 x y). The algorithm reverses the order of the elements between the given indices, (including the elements at indices x and y) and returns the resulting list. If L = (a,b,c,d,e,f),x = 1, y = 4, the result is (a, e, d, c, b,f). (The index of the first element of the list is 0)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
