-
Notifications
You must be signed in to change notification settings - Fork 13
Interview Experience 98
#2017
#SoftwareEngineer
Round 1 (Coding Round):
It seems that I didn't take screenshot of one of the questions from 1st round.
Round 2:
#1) Write a program to find common elements from two ArrayList of Integers, without using a Set or Map. public ArrayList getDeDupedList(ArrayList originalList1, ArrayList originalList2 ) {
}
Returns the list of common elements between the two input lists.
How does using an efficient data structure make a difference?
Can you quantify the time difference in execution as the dataset size grows, between the method that uses efficient data structure vs brute force one?
Write unit tests to ensure your algorithm is correct. For many input lists.
#2) Write a web service using Java Spring technology or any technology that you are familiar with for web services development, that will do the following:
a) localhost:8080/api/uploadResumeDetails Takes in the body of the POST request, a json format of name, current job title, current job description, current job company.
Store in temp memory on the server. Returns the resume ID.
b) Now, without restarting the tomcat7/jetty server, when a request is made
/api/getResume/ID
GET request. Gives back the candidate resume details in same json format as uploaded.
what kind of strategies can we use to test such a utility?
Round 3:
He asked me a question. After clarifying I gave him the answer and then he said you could have done this which was in no way related to that question. So I don't have the question as it was not well defined.