can you provide certain hint for this problem?
Arrays-intersection of two arrays
Hey @shubhangis248
- Make a frequency map for each element in the first array i.e. store the frequency of each element in the first array.
- Iterate over the second array and search for current element in the freq map.
- If an entry is found , decrease its frequency in the freq map and push this element into your final answer array.
- Display the elements of this answer array after sorting it.