Leetcode 2855. Minimum Right Shifts to Sort the Array
Check whether the array is a cyclic rotation of its ascending-sorted order; if so, return the minimum number of right circular shifts required to restore strict ascending order, otherwise return -1.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.