The array is sorted → duplicates will always be adjacent. Start iterating from the second element. Compare each element with the last unique element (at index k - 1): If they are different → place it ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results