YOE: 7.5
Recently gave the Salesforce for SMTS Backend role.
Recruiter Approched.
Round 1 : Platform- Hackerrank
2 Questions to be completed in 75 min.
Q1: Variant of https://leetcode.com/problems/remove-duplicates-from-an-unsorted-linked-list/description/ We should have only one occurence of numbers.
Q2: Variant of https://leetcode.com/problems/kth-largest-element-in-an-array/description/
Solved both in 40 min.
Round 2 : Vertual DSA Coding Round
2 Questions to be completed in 60 min.
Q1: Variant of https://leetcode.com/problems/reconstruct-itinerary/description/ the input will not have any loops or mutiple paths.
did it using hashmap and set in 30 min. Interviewer was satisfied.
Q2: Design Queue with getMax() operation in O(1).
I was tring to solve it by using queue and monotonic incresing stack but while doing the code i realised it can be solved using monotonic deque insted of stack the way we do in https://leetcode.com/problems/sliding-window-maximum/submissions/1822118059/.
Was not able to complete the deque solution in remaing 30 min time.


