Status: -Grad Position: SDE Intern - at Salesforce Location: / Date of Offer: 19th July
The questions were long and they had a lot of story and it took time to read and understand the question. I solved 2 questions with all test cases passed and the third question with 2 test cases passed.
2 Technical - 45 mins 1 Hiring Manager Round - 30 mins
Technical Round - 1st The interviewer shared a Hackerrank Codepair link. The First question was - Two Sum (from Leetcode). This is a very easy question and I wrote the code and explained it to him simultaneously. Second Question - This was also an easy question where an array was given and I had to find out the first occurrences of the elements (something similar). I gave him a brute force approach then later optimized it using an unordered map. He was quite happy and it passed all the test cases.
OOPS Questions [ 15 mins] He asked me to explain encapsulation and abstraction with real life examples. Benefits of OOPS, How does a map work and the internal implementation of a map as I had used it in my coding question. I was also asked if I have used an abstract class in my project but I didn't use it.
Technical Round - 2nd
First Question - Balanced Parenthesis [ the question had only one type of brackets] input - (())( output - false I explained my solution and wrote the code.
Second Question - This was a debugging problem and required the approach of multilevel inheritance. I got confused for a bit but the interviewer gave me a hint and then I answered her questions correctly.
Third Question - Given an array all the occurrences in the array should be unique. input - [1,2,2,3,3,3] output - true I gave her multiple approaches involving an unordered map, set ..and I wrote code for 2 solutions. Overall she was satisfied and asked me about the time and space complexities of each solution.
Hiring Manager Round - 30 mins Questions I was asked were -
I was selected for a 2 month [May-July ] internship and the result was announced on the same day.
Overall Review-