Status : 2024-Grad, B. Tech from NIT
Position : SDE Intern - 2023 at Salesforce
Location : Hyderabad/Banglore
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 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 . This is a very easy question and i wrote the code and explained him simultaneously.
Second Question - This was also an easy question where an array was given and i had to find out first occurrences of the elements (something similar). I gave him a brute force approach then later optimized it using 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 map work and internal implementation of map as i had used it in my coding question.
I was also asked if i have used abstract class in my project but i didnt used 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 unoreder 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 2 month [May-July 2023] internship and the result was announced on the same day.
Overall Review-
Compensation : https://leetcode.com/discuss/compensation/2320614/Salesforce-or-SDE-Intern-2023-or-Banglore