Question DSA-ARR-0032
EasyWhat is [1, 2, 3, 4, 5] after rotating it left by 2 positions?
- A.
[3, 4, 5, 1, 2]
- B.
[2, 3, 4, 5, 1]
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Arrays question
What is [1, 2, 3, 4, 5] after rotating it left by 2 positions?
[3, 4, 5, 1, 2]
[2, 3, 4, 5, 1]
Sign up free to see the answer and a step-by-step explanation.
[4, 5, 1, 2, 3]
[5, 4, 3, 2, 1]