Pergunta de entrevista da empresa Myntra

Write an algorithm to check in in an integer array, the array can be sorted by just one exchange of elements

Resposta da entrevista

Sigiloso

11 de mai. de 2017

By sorting the array and then seeing the number of elements that are different in the original and the sorted array