You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// A local inversion is also a global inversion. Thus, we only need to check if our permutation has any non-local inversion (A[i] > A[j], i < j) with j - i > 1.