Write an algorithm to check in in an integer array, the array can be sorted by just one exchange of elements
Anonymous
By sorting the array and then seeing the number of elements that are different in the original and the sorted array
Check out your Company Bowl for anonymous work chats.