backGround？how many DataBases?or just two classes (java)to describe this problem?
@2015E8007361069 seems your code doesn't work when n=10
problem happens on start--;
start may encounter a position which was swapped
This makes zero sense without knowing the input array that led to that output.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.