This is a beginner level lab that deals with various approaches to solve questions related to array rotations.
WHAT WILL YOU LEARN:
- Left rotation of arrays
- Right rotation of arrays
- Various approaches to rotate arrays along with their time complexities
Basic knowledge of arrays and C++.
Lets get started
WHAT IS ARRAY ROTATION?
Array rotation simply means shifting the elements of the array left or right by specified positions.
- Left rotation is also know as clockwise rotation.
- Right rotation is also known as anti-cockwise rotation.