You need to log in or create an account to post to this user's Wall.
Looks like there is format issue.
while (i < j && arr[i] i && arr[j] < arr[j - 1]) j–;
if (i == j) break;
I wrote this code a couple of weeks ago.
peking2 and 1337c0d3r are now friends 1 year, 2 months ago
peking2 became a registered member 1 year, 2 months ago
Copyright © 2013 LeetCode · Log in