Remove duplicates from the sorted array nums so each unique value appears once. Return the count of unique values while maintaining the order in nums.
With what pattern can we solve this problem in linear time and constant space ?
Given scores of athletes in an array score, assign 'Gold Medal' to the top score, 'Silver Medal' to the second, 'Bronze Medal' to the third, and numeric ranks to the rest. Return the rank.
With what pattern can we solve this problem in loglinear time and linear space ?
Convert a Unix-style absolute path into its simplest form by handling '.', '..', and multiple slashes. Return the canonical path.
With what pattern can we solve this problem in linear time and linear space ?