Current: 5.5 years of experience
Location: Bangalore
I had applied to both Salesforce Bangalore and Frankfrut through their careers page. Recruiter called me in about a week saying she saw my application for some other role and she would like to process my application for a different role based in Bangalore. Got link to online test same day and I attempted it after 3 days.
OA (Aloha 5 - 90mins):
- Spiral matrix - https://leetcode.com/problems/spiral-matrix/ - All test cases passed
- Number of time units n is given along with two arrays meeting start and end time. Longest time without meeting is to be returned. Ex: n=10, start=[1,2,5,8], end=[2,2,6,10]. Ans=2 (time slot between 5 & 2 that is slots 3 & 4). Start and end could be unsorted as well. Wordings were different, but its the same question. Got partial output (5/12) for this one - was getting TLE. Could not (and still cannot) think of the optimal solution. If someone can, please let me know.
Feedback: To next rounds, scheduled within three days of taking the test.
There was no elimination between round 1 & 2.
Round 1 (DSA - 1hr):
Initial 10-15mins of introductions and discussions on my current project.
- Linkedlist with each node containing next and one random pointer is given. End node will have null for both next and random ptr. Minimum distance to end node from start node is to be calculated. Used BFS and coded the solution, it worked fine. Interviewer had some issues with my way of BFS implementation. It was just about optimising the constant part - my solution would take O(n+2), where as the other one would be O(n+1) approximately. Both of which is still at the end O(n). Either ways, my code was neither clean. Did some cleaning - just the cleaning, not the change in way I implemented, but I could sense interviewer was not happy.
- Policemen catching theif (problem available in GFG) - We just had 12mins left for this. After a lot of struggle, came with a solution that takes O(nk), but I was not 100% sure if it works for all the cases. Interviewer also did not give any feedbacks or edge cases. Ran out of time for further discussions.
This round was touch and go according to me. It dint go as expected. Not sure how question 2 can be solved in 10mins if someone is seeing it for the first time. No elimination inbetween meant I had to give the next round.
Round 2 (LLD & Coding - 1hr):
- LLD: Notification library supporting different types of notifications. Gave this kind of round after long time, could only come up with a manageable solution - missed lot of things initially and took hints from the interviewer.
- https://leetcode.com/problems/longest-well-performing-interval/ - Wordings were different, but it was the same question. I couldnt think of the optimal solution. Interviewer gave the hint 1 mentioned in the LC question, I could figure out what is to be done from there, but was not sure on how to do it.
I felt two questions of these kind in 1hr is too much an ask. But it is what it is!
Feedback: Received standard rejection mail within couple of hours.
The way interviews were scheduled by the recruiter was weird. No official meeting invites, never asked for convenient slots, was not even informed of the round 2 timings until I was done with round 1, both the rounds were delayed by ~30mins. But overall, the process was quick and simple. If round 1&2 are cleared, there will be a System Design and a Hiring Manager round.
My other interview experiences: https://leetcode.com/discuss/interview-experience?currentPage=1&orderBy=hot&query=&tag=anonymousengineer