If you have an unsorted array of 1,000,000 elements, how would you sort this array?
Anonymous
Iterate over the array and use a hashmap to store elements as keys and increment for every value it goes up by. Then, iterate over the hashmap in order to make a sorted array.
Check out your Company Bowl for anonymous work chats.