Samsung Electronics interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

Samsung Electronics
upvote
share-icon
4 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Journey
I had applied for SDE-1 position in Samsung through referral and I had 1 year experience prior to Samsung in back-end development in a service based company. Being a working professional I had to dedicate time after my working hours towards DSA and system design. Mostly I prepared extensively for DSA and little touch on system design as I had only 1 year experience. Samsung is well known for asking DSA questions from variety of topics so I solved previously asked questions as well as most well known problems on leetcode.
Application story
I applied to Samsung through referral. I have a few friends who work in Samsung and I contacted them regarding any open positions in the company. One can also connect with people on LinkedIn for referrals. My resume was forwarded to the HR an I got a call regarding selection process within a week.
Why selected/rejected for the role?
My previous experience aligned well with the technology in which there was an opening, and I had completed several projects using the same technology stack, which I highlighted on my resume. Additionally, I invested time in practicing DSA before the interview, which proved to be very beneficial in helping me to succeed and ultimately land the position.
Preparation
Duration: 3 months
Topics: Recursion, Trees, Graphs, Dynamic Programming, System Design
Tip
Tip

Tip 1 : Focus on quality than quantity

There is no point in solving 250 or 300 problems if you are short on time especially if you are a working professional. Most problems have similar pattern and solving them repeatedly won't improve your thinking skills. Make a list of problems from each DSA topic like for graphs pickup problems from BFS, DFS, DSU, Articulation point, etc. Solve few problems from each topic and once you are comfortable move to the next topic. Properly curating which problems you need to solve is essential.

Tip 2 : Communication

Comminication is the most important aspect in any interview. No matter how much knowledge one has without properly comminicating one's thought process to the interviewer sucessfully cracking the interview is extremely hard. Make sure you say out load whatever you are thinking to the interviewer. 

Tip 3 : Propose your approach to the interviewer before attempting to code

Many time it happens that we know the solution of a problem and we start coding it right away. However, it may happend that the interviewer wanted you to solve the problem using some different approach. So before coding discuss your approach with the interviewer and if he/she seems satisfied only then start coding.

Application process
Where: Referral
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1: One Page Resume
For those with less than three years of experience, it's best to keep your resume to a single page and focus on highlighting the key points. If you're applying for an SDE profile, be sure to emphasize your relevant projects, prior experience, research papers, and the technology stacks you've worked with. Highlight the technologies you have worked on in bold so that it catches the eyes of the recruiter.

Tip 2: Show your problem-solving abilities
Samsung has their internal coding portal which has a lot of DSA related problems and they expect you to be proficient in DSA. Attach your Leetcode, Codeforces, etc. profiles in your resume if have good rating on these platforms, it will give you an edge over other candidates.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60 mins
Interview date10 Mar 2021
Coding problem3

First round was an online round which was held on CoCubes platform in afternoon. The test had 3 coding problems to be solved in 60 minutes. The questions were easy-medium but there was no STL allowed. You had to create your data structures like heap, vector, etc. from scratch.

1. Maximum Subarray Sum

Moderate
25m average time
75% success
0/80
Asked in companies
Paytm (One97 Communications Limited)AmazonSnapdeal

Given an array of numbers, find the maximum sum of any contiguous subarray of the array.


For example, given the array [34, -50, 42, 14, -5, 86], the maximum sum would be 137, since we would take elements 42, 14, -5, and 86.


Given the array [-5, -1, -8, -9], the maximum sum would be -1.


Follow up: Do this in O(N) time.

Problem approach

This problem can be efficiently solved using Kadane's algorithm.
Approach:
1. Initialize two variables max_so_far and max_ending_here to 0.
2. Traverse the array and for each element, do the following:
Add the element to max_ending_here.
If max_ending_here is negative, set it to 0.
If max_ending_here is greater than max_so_far, update max_so_far.
3. Return max_so_far.

Try solving now

2. Find Number Of Islands

Moderate
34m average time
60% success
0/80
Asked in companies
MicrosoftAmazonUber

You are given a 2-dimensional array/list having N rows and M columns, which is filled with ones(1) and zeroes(0). 1 signifies land, and 0 signifies water.

A cell is said to be connected to another cell, if one cell lies immediately next to the other cell, in any of the eight directions (two vertical, two horizontal, and four diagonals).

A group of connected cells having value 1 is called an island. Your task is to find the number of such islands present in the matrix.

Problem approach

There are multiple ways to solve this problem. I solved it using Union Find. Other approaches can be BFS and DFS.
Approach:
1. Initialize a parent array, which stores the parent of each element in the grid. Initially, all elements are set to -1, which means they have no parent.
2. We then iterate over the grid and union neighboring elements that are part of the same island. If two elements are adjacent and both contain the value '1', we union them together in the parent array.
3. Finally, we count the number of disjoint sets in the parent array. Each set represents an island.

Try solving now

3. Merge k sorted lists

Hard
25m average time
65% success
0/120
Asked in companies
SAP LabsMicrosofteBay

Given 'k' sorted linked lists, each list is sorted in increasing order. You need to merge all these lists into one single sorted list. You need to return the head of the final linked list.


For example:
Input:
3
3
4 6 8
3
2 5 7 
2
1 9

Output:
1 2 4 5 6 7 8 9 

Explanation:
First list is: 4 -> 6 -> 8 -> NULL
Second list is: 2 -> 5 -> 7 -> NULL
Third list is: 1 -> 9 -> NULL
The final list would be: 1 -> 2 -> 4 -> 5 -> 6 -> 7 -> 8 -> 9 -> NULL
Problem approach

We can solve this problem using a heap-based approach. Since STL was not allowed I had to create heap manually. We can maintain a min-heap of size k, where each element in the heap is the first node of one of the k lists. We can then repeatedly extract the minimum element from the heap, add it to the merged list, and replace it with the next node in the corresponding list.

Approach:

1. Create a min-heap of size k.
2. Push the first node of each linked list into the heap.
3. While the heap is not empty, extract the minimum node from the heap, add it to the merged list, and replace it with the next node in the corresponding list (if it exists).
Repeat step 3 until the heap is empty.

Try solving now
02
Round
Medium
Video Call
Duration90 minutes
Interview date12 Apr 2023
Coding problem2

This was an online Video Call round conducted on Samsung Knox Meeting in the morning. There interviewer was from Cloud background and some questions related to my resume. The round began with a DSA problem followed by a System Design problem.

1. Longest Common Subsequence

Moderate
0/80
Asked in companies
AdobeUberCisco

You have been given two Strings “STR1” and “STR2” of characters. Your task is to find the length of the longest common subsequence.

A String ‘a’ is a subsequence of a String ‘b’ if ‘a’ can be obtained from ‘b’ by deletion of several (possibly, zero or all) characters. A common subsequence of two Strings is a subsequence that is common to both Strings.

Problem approach

We can solve this problem using dynamic programming. We can define dp[i][j] to be the length of the longest common subsequence of the first i characters of text1 and the first j characters of text2.

We can then fill in the dp array using the following recurrence relation:

if text1[i-1] == text2[j-1]:
dp[i][j] = 1 + dp[i-1][j-1]
else:
dp[i][j] = max(dp[i-1][j], dp[i][j-1])

Sure! Here's a problem statement, a solution approach with pseudocode, and corner cases to consider for the "Longest Common Subsequence" problem:

Problem Statement
Given two strings text1 and text2, return the length of their longest common subsequence.

A subsequence of a string is a new string generated from the original string with some characters (can be none) deleted without changing the relative order of the remaining characters.

Example:

vbnet
Copy code
Input: text1 = "abcde", text2 = "ace"
Output: 3
Explanation: The longest common subsequence is "ace" and its length is 3.
Solution Approach
We can solve this problem using dynamic programming. We can define dp[i][j] to be the length of the longest common subsequence of the first i characters of text1 and the first j characters of text2.

We can then fill in the dp array using the following recurrence relation:

less
Copy code
if text1[i-1] == text2[j-1]:
dp[i][j] = 1 + dp[i-1][j-1]
else:
dp[i][j] = max(dp[i-1][j], dp[i][j-1])

The base case for the dp array is dp[0][j] = dp[i][0] = 0 (i.e., the longest common subsequence of an empty string and any other string is 0).

The answer to the problem is stored in dp[m][n], where m and n are the lengths of text1 and text2, respectively.

Printing LCS:
Traverse the 2D array starting from dp[m][n]. Do following for every cell dp[i][j] 
If characters (in X and Y) corresponding to dp[i][j] are same (Or text1[i-1] == text2[j-1]), then include this character as part of LCS. 
Else compare values of dp[i-1][j] and dp[i][j-1] and go in direction of greater value.

Try solving now

2. Design Question

Design a parking lot

Problem approach

Tip 1: Identify the requirements: The first step is to identify the requirements of the parking lot system from your interviwer. This might include things like the number of parking spots, the types of vehicles that can park, the pricing model, and the payment methods accepted.
Tip 2: Choose appropriate data structures: Choose appropriate data structures to represent the different components of the system. For example, you might use a hash table to represent the parking spots, or a priority queue to manage the payment system.
Tip 3: One can read System Design by Alex Yu for popular system design questions

03
Round
Easy
HR Round
Duration20 minutes
Interview date21 Apr 2023
Coding problem1

I got a call from HR that I was selected for the position of SDE in Samsung. This round mostly involved discussion regarding previous company, notice period and compensation. I was informed by HR that a SWC Advance test would be conducted in Company Office once I join the company. Passing this test was mandatory to clear probation.

1. Basic HR Question

Compensation discussion

04
Round
Easy
Face to Face
Duration120 minutes
Interview date4 Apr 2023
Coding problem1

This round was conducted in Company Office in Noida in the morning. It was conducted on Samsung's internal SWC platform. There was a single question to be solved with 10 limited submission attempts in 3 hours. All test cases need to be passed to clear this round. Probation period will end only when you clear this round.

1. Bursting Balloons

Moderate
40m average time
60% success
0/80
Asked in companies
QuikrSamsungOracle

You are given an array 'ARR' of N integers. Each integer represents the height of a balloon. So, there are N balloons lined up.

Your aim is to destroy all these balloons. Now, a balloon can only be destroyed if the player shoots its head. So, to do the needful, he/ she shoots an arrow from the left to the right side of the platform, from an arbitrary height he/she chooses. The arrow moves from left to right, at a chosen height ARR[i] until it finds a balloon. The moment when an arrow touches a balloon, the balloon gets destroyed and disappears and the arrow continues its way from left to right at a height decreased by 1. Therefore, if the arrow was moving at height ARR[i], after destroying the balloon it travels at height ARR[i]-1. The player wins this game if he destroys all the balloons in minimum arrows.

You have to return the minimum arrows required to complete the task.

Problem approach

Apparoach:

1. Modify the input list: We modify the input list nums by adding two 1's at the beginning and end of the list, since balloons outside the range of [i, j] have a value of 1 when they are burst.

2.Define the subproblem: We define the subproblem as finding the maximum coins that can be obtained by bursting balloons in the range [i, j]. The final solution is the maximum coins that can be obtained by bursting balloons in the range [0, n-1].

3. Use dynamic programming: We define a 2D array dp where dp[i][j] represents the maximum coins that can be obtained by bursting balloons in the range [i, j] (inclusive). We fill in the array dp in a bottom-up fashion using the following recurrence relation:

dp[i][j] = max(dp[i][k-1] + nums[i-1]*nums[k]*nums[j+1] + dp[k+1][j]) for all k in range(i, j+1)

Here, k represents the last balloon to be burst in the range [i, j]. We consider all possible choices of k and take the maximum.

4. Handle edge cases: If the input list is empty, return 0.

Try solving now

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What does the SQL function NOW() return?

Choose another skill to practice
Similar interview experiences
SDE - 1
3 rounds | 4 problems
Interviewed by Samsung Electronics
672 views
0 comments
0 upvotes
SDE - 1
4 rounds | 4 problems
Interviewed by Samsung Electronics
906 views
0 comments
0 upvotes
SDE - 1
3 rounds | 6 problems
Interviewed by Samsung Electronics
631 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
1996 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
110296 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
54104 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
33181 views
6 comments
0 upvotes