Question DSA-ARR-0077
HardWhat is the next permutation of [1, 3, 5, 4, 2]?
- A.
[1, 4, 2, 3, 5]
- B.
[1, 5, 4, 3, 2]
- 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 the next permutation of [1, 3, 5, 4, 2]?
[1, 4, 2, 3, 5]
[1, 5, 4, 3, 2]
Sign up free to see the answer and a step-by-step explanation.
[1, 3, 5, 2, 4]
[1, 4, 5, 3, 2]