Panda Guru LogoPanda
Guru

Swiggy | OA | Array Conversion

Round 1

Questions: Given a permutation array consisting of values from 1 to N. 2 types of operations can be performed on the array:

  1. Swap any 2 elements at different indices.
  2. Rotate Left (can be used only once).

Find the minimum operations to sort the array.

Example:

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.