0

I was going through available solutions to an array rotation problem (specifically a left array rotation), given a number 'd' (the number of array rotations you need to perform).

I have not seen any solutions trying to achieve this using linked lists. Is it not possible to convert the array provided into a Linked List, start a for loop and for each iteration, remove the head and add it to the end, till 'd'. It can now be converted into an array again.

Is there a problem with this approach?

0 Answers0