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

SDE - Intern

Samsung
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
I starting my coding journey from my second year but it was not regular, like sometimes when it feels like, but i got serious toward this by the mid of my 3rd year, i even practice atleast 8- 9 questions daily also i would like to mention one tip it goes better when we have a friend that we can code with.
Application story
I got informed about the company on campus visit through college tpo job portal, so i filled it up, and i got shortlisted for the first online coding round that went easy and questions were not that hard, after there was a F2F technicall round that went smooth as well and after 2 months we got the positive results.
Why selected/rejected for the role?
Because i asked thee interviewer few questions regarding the work we were going to do at samsung(obv i cant reveal here) but it felt quite interesting so i was happy to accept it.
Preparation
Duration: 3 Months
Topics: Data Structures, OOPS, Operating System, DBMS and some aptitude
Tip
Tip

Tip 1 : Focus on quality of question rather than quantity
Tip 2 : Also do some development in order to add weight o your resume
Tip 3 : Start as early as possible

Application process
Where: Campus
Eligibility: At least 8 CGPA
Resume Tip
Resume tip

Tip 1 : Add one or 2 projects
Tip 2 : Only write skills that you are sure about

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 Minutes
Interview date30 Dec 2021
Coding problem2

it was around 4 5 PM as far as i remember, environment was not that bad as we were free to chose it, But MCQ part was a bit lengthy so i have to speed it up a little bit

1. Check If Binary Tree Is Sum Tree Or Not

Moderate
15m average time
85% success
0/80
Asked in companies
AdobeGoldman SachsAmazon

You are given an arbitrary binary tree consisting of N nodes where each node is associated with a certain value. You need to check whether the given tree is a sum tree or not.

A binary tree is a sum tree if the value of each node is equal to the sum of nodes present in the left and the right subtree. An empty tree is a sum tree with 0 sums. A leaf node is also considered a sum tree with a sum equal to the value of the leaf node.

Problem approach

Get the sum of nodes in the left subtree and right subtree. Check if the sum calculated is equal to the root’s data. Also, recursively check if the left and right subtrees are SumTrees.

Question was quite easy as it was standard and i gave them the standard approach , they accepted it

Try solving now

2. Construct Binary Tree from Inorder and Postorder Traversal

Moderate
25m average time
80% success
0/80
Asked in companies
SamsungMedia.netCommvault

You are given arrays 'inOrder' and 'postOrder', which represent 'inorder' traversal and 'postorder' traversal of a 'Binary Tree' respectively.


Construct a 'Binary Tree' represented by the given arrays and return it's head.


Note:
Assume that the Binary Tree contains only unique elements.


Example:
Input: 'inOrder' = [9, 3, 15, 20, 7], 'postOrder' = [9, 15, 7, 20, 3]

Output:
We get the following binary tree from Inorder and Postorder traversal:


Try solving now
02
Round
Medium
Face to Face
Duration70 Minutes
Interview date5 Jan 2023
Coding problem2

The face-to-face technical round provided a platform for a more in-depth evaluation of my technical skills and knowledge. The interviewers delved into various aspects of data structures, algorithms, and programming concepts, seeking a thorough understanding of my capabilities.

1. Clone a binary tree with random pointers.

Moderate
10m average time
90% success
0/80
Asked in companies
SamsungAmazonExpedia Group

You are given a binary tree. Apart from the left and right child pointers, each node in the given binary tree points to a random node in the given binary tree. You are supposed to return a clone of the binary tree.

Cloning a binary tree means making a deep copy of the input binary tree.

Note :
Two nodes may have the same value associated with them.
The root node will be fixed and will be provided in the function.
Try solving now

2. Puzzle

You are given two containers: one with a capacity of 3 litres and the other with a capacity of 5 litres. The water supply is infinite. Your task is to use these containers to measure exactly 4 litres of water. You can fill or empty the containers, as well as pour water from one container to another. The goal is to have exactly 4 litres of water in one of the containers at the end of the process.

Please note that the containers do not have any measurement markings, so you can only rely on their capacities (3 litres and 5 litres) to measure the desired quantity of water.

Problem approach

Start with both containers empty.
Fill the 5-litre container to its maximum capacity.

Pour the water from the 5-litre container into the 3-litre container, which will fill the 3-litre container completely and leave 2 litres in the 5-litre container.

Empty the 3-litre container.

Pour the remaining 2 litres from the 5-litre container into the 3-litre container.

Fill the 5-litre container to its maximum capacity again.

Pour the water from the 5-litre container into the 3-litre container until the 3-litre container is full. This step will leave 4 litres of water in the 5-litre container.

Now, you have 4 litres of water in the 5-litre container, achieving the desired amount.

Here's your problem of the day

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

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
SDE - Intern
3 rounds | 4 problems
Interviewed by Samsung
1351 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Samsung
919 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 8 problems
Interviewed by Samsung
1056 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Samsung
1616 views
1 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15605 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15499 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10216 views
2 comments
0 upvotes