Link: https://leetcode.com/problems/relative-sort-array/
Solution:
Topics: hash map
Intuition
Cute little problem involving a hash map. I won’t go into detail because the solution is trivial if you know how to use a frequency map.
Implementation
Review 1
Too easy.
review