Question: 22. Design and implement an algorithm that is given as input an integer value k 2 0 and a list of k number Ni, N2,

22. Design and implement an algorithm that is given as input an integer value k 2 0 and a list of k number Ni, N2, ..., Nk. Your algorithm should reverse the order of numbers in the list. That is, if the original list contained: N1-3, N2 26, N3 8, N4 58, Ns 11 (k-5) then when your algorithm has completed, the values stored in the list will be: Ni 11, N2 58, N3 8, N4 26, Ns 3 (6 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
