Salesforce SMTS Interview
Company: Salesforce
Role: senior mts
Interview Stage: Phone Screen
Location: unknown
Year: unknown
Original Post Content:
Round 1 experience
Interviewer jumped straight to the questions after 1 minute intro.
Then Hackerrank link was shared.
Was given 2 questions -
1. Same as https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/description/
Was able to come up with a brute force approach initially but after around 10-15 mins, I could think of the stack based approach. However, since already almost 30 minutes were up, interviewer moved on to the next question.
2. Same as https://leetcode.com/problems/binary-tree-maximum-path-sum/description/
Question was same but inputs were horrible, I was given List<Integer> parent, List<Integer> values, through which I had to first create the whole tree by myself or figure out the approach using this input only. I was able to come up with the approach, but had the nightmare of creating the tree from scratch in the limited time.
In the end, wasn't able to solve either problems, but only able to talk about the approaches.