I need to know what algorithm or methodology can be used to solve this problem.The problem is,
I have an array of integers, which are in some order. how to find the minimum number changes or moves required to convert the array into ascending order.
I am new to competitive programming, So detailed answer would to be great. thanks.