Figure the Flow

Given a sorted array nums, remove duplicate elements in-place to retain only unique values. Return the total count of unique values in nums.

With what pattern can we solve this problem in linear time and constant space ?

Solve the Code Riddle

You are given a score array representing athletes' scores. Rank them such that the highest gets 'Gold Medal', second 'Silver Medal', third 'Bronze Medal', and the rest get their positions. Return the rank.

With what pattern can we solve this problem in loglinear time and linear space ?

Crack the Pattern

Simplify a Unix-style absolute path by eliminating '.', '..', and redundant slashes. Ensure the path starts with '/' and is in its simplest form. Return the canonical path.

With what pattern can we solve this problem in linear time and linear space ?