I was part of an industrial training by Teamware Solutions post which I was selected for an interview with their top client Morgan Stanley. There was just one round of Interviews since this was for the role of consultant.
Questions Asked:
-
Find the maximum price of a stock queried by the user from a list of stocks and prices.
Example:
{Airtel,30},{Tata,100},{Airtel, 55},{Tesla,75} Query: Airtel Output: 55
-
Write a code to check if the string with parenthesis is balanced or not? Try to do without the stack
-
Given two Strings find the largest common subsequence
Theory Questions:
- Difference between HashMap and TreeMap (Since I mentioned I was comfortable with Java)
- Explain Internal Implementation of Hashmap
- Explain Internal Implementation of TreeMap
- What sorting algorithm will be best to use if I tell you that the range of elements is less than the size of the array
- Lastly some questions regarding the project, like what technology I used, what were the problems I faced, and How I solved them.