Question: Write a LISP function rotateLeftByOne that takes a list as input and returns another list as output where items of the list are shifted left
Write a LISP function rotateLeftByOne that takes a list as input and returns another list as output where items of the list are shifted left by one position except for the first item which is shifted to the end.
Then implement rotate(L n) that rotates the list input L, n times by using rotateLeftByOne.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
