Search posts, tags, users, and pages
Mohd Shakeel
class Solution { public int sortPermutation(int[] nums) { int n = nums.length; int max = 1; while(max < n){ max<<=1; } max-=1; int k = max; for(int i=0; i<n; i++){ if...
Markdown supported · ⌘↵ to post
No responses yet.