About me:
I applied to Samsung through Referral
There were total 4 rounds
Each round was elimination round.
Round 1 - Samsung Coding Assessment
It was conducted on the cocubes platform. We were given 2 coding questions to solve in 1hr 30 min.
Q1) Find number of shortest paths from source to destination in the given graph (Solved using Dijkstra algorithm)
Q2) https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/
Round 2 - Software Competency Advance Test
Round 3 - Technical Interview (1Hr)
Interviewer asked me about my introduction , In my intro I told him about OU Notes and my current role and organization I’m working in and my past internship Experience. He asked follow up questions on my intro
then he told me that first he will check my computer fundamentals and then we will do Data structures questions
Then DSA Questions:
Q1) Modified version of single number question (https://leetcode.com/problems/single-number/)
Q2) Modified version of single number 2 question (https://leetcode.com/problems/single-number-ii/)
Both these questions were based on bit manipulation and can be solved using xor operator.
Q2 follow-up was to find the first set bit from right in the given number (which is one of the steps in solving Q2) without traversing through all the bit (which is the brute force approach).
Example : if number is 01110 , then we have to return 00010
He gave me hints to use the negation operator (~) . But was not able to come up with an Efficient approach.
He then moved to DSA Theory
He then asked me another DS Question
Q8) How do you reverse an array of elements (https://leetcode.com/problems/reverse-string/) Basic question, using two pointers.
Q9) Rotate array k times (https://leetcode.com/problems/rotate-array/), Efficient approach to this question was O(n) time and O(1) space using reverse array logic, Which is the reason he asked me reverse array question first.
Q10) Check whether LinkedList has cycle or not (https://leetcode.com/problems/linked-list-cycle)
At last, he asked If I have any questions for him.
Round 4 - HR Round
It was a basic HR round and lasted about 25 mins.
Compensation:
https://leetcode.com/discuss/compensation/2821216/samsung-sde1-bangalore/1687705
Amazon interview experience:
https://leetcode.com/discuss/interview-experience/2232898/Amazon-or-SDE1-or-India-or-April-2022-Reject