Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possible, it m...
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space for anothe...