Question Link: Name Lookup
In this problem, Roll number and Name of students are given. We have to find the name of students for each query of Roll number.
I have done this using HashMap. Please suggest an alternate method to solve this problem.
See my Editorial link: https://www.stopstalk.com/problems/read_editorial/1651