Given an array of size n containing integers in the range [0, n - 1], find the frequency of every element from 0 to n - 1 in-place in O(n) time and O(1) auxiliary space.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.