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

SDE - Intern

Samsung
upvote
share-icon
3 rounds | 9 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data Structures, Algorithms, OOPS, Database Systems, Dynamic Programming, Graphs
Tip
Tip

Tip 1 : Don’t get demotivated by the rejections. Luck matters a lot here. So don't be so hard on yourself. Try to learn from your mistakes and move forward.
Tip 2 : Read past interview experiences and solve questions asked by those companies.
Tip 3 : Only mention those topics, courses and projects about which you are well aware. Don’t mention any topic in your resume about which you are not confident.

Application process
Where: Campus
Eligibility: above 7 CGPA, For B.tech - CSE, EE, DSE, EP; For M.Tech - CSE, CSP; For M.Sc - Applied Mathematics; For MS - SCEE were allowed
Resume Tip
Resume tip

Tip 1 : Only mention those topics, courses and projects about which you are well aware. Don’t mention any topic in your resume about which you are not confident.
Tip 2 : Try to do diverse and unique projects which will make you stand apart.

Interview rounds

01
Round
Medium
Online Coding Test
Duration70 Minutes
Interview date27 Sep 2021
Coding problem3

There were 3 questions which had to be solved in 70 minutes. Not everyone got the same question, but the topic of questions were similar. There only only 1-2 testcases at the time of submission, and rest all test cases were run after the end of assessment. Only those students got selected for the next round who were able to solve all 3 questions. The questions were familiar and if one has practiced well, then it won't be a problem to solve these

1. Spiral Order Traversal of a Binary Tree

Easy
20m average time
75% success
0/40
Asked in companies
PayUAtlassianAmazon

You have been given a binary tree of 'N' nodes. Print the Spiral Order traversal of this binary tree.

For example
For the given binary tree [1, 2, 3, -1, -1, 4, 5, -1, -1, -1, -1]
    1
   / \
  2   3
     / \
    4   5

Output: 1 3 2 4 5
Try solving now

2. Maximum Subtree Sum

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

You are given an arbitrary binary tree consisting of N nodes. Your task is to find the largest subtree sum.

Note :

1. The value of any node will not be equal to zero.
2. Subtree of a node X is all the nodes that are below X and X itself.
3. For example in the tree given below, nodes 1, 2 and 3 are in subtree of 1.

altImage

4. Subtree sum of X is the sum value of all the nodes in subtree of X.  
5. Binary tree is a tree wherein each node has at most two children.  
6. Any two nodes may have the same value associated with it.
Try solving now

3. Edit Distance

Moderate
30m average time
70% success
0/80
Asked in companies
OYOGoldman SachsHCL Technologies

You are given two strings 'S' and 'T' of lengths 'N' and 'M' respectively. Find the "Edit Distance" between the strings.

Edit Distance of two strings is the minimum number of steps required to make one string equal to the other. In order to do so, you can perform the following three operations:

1. Delete a character
2. Replace a character with another one
3. Insert a character
Note:
Strings don't contain spaces in between.
Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date7 Oct 2021
Coding problem3

It was a technical round.It first started with my introduction and some discussion on my resume. After that, he gave me several DSA questions and asked for pseudocode.

1. Majority Element lll

Moderate
10m average time
90% success
0/80
Asked in companies
SamsungAdobeHCL Technologies

You are given an array ‘ARR’ and another integer number ‘K’. Your task is to find the all elements of ‘ARR’ which occur more than or equals to ‘N/K’ times in ‘ARR’ and ‘N’ is the length of array ‘ARR’.

For example:

Given array ‘ARR = { 1, 2, 3, 3, 3, 3, 4, 4, 4, 1, 2 ,0}’ and ‘K = 4’

Answer is {3, 4} because ‘3’ occurs ‘4’ times and ‘4’ occurs ‘3’ times which is more than or equals to ‘12/ 4 =3’.

Try solving now

2. Reverse the String

Easy
15m average time
85% success
0/40
Asked in companies
SAP LabsWalmartFacebook

You are given a string 'STR'. The string contains [a-z] [A-Z] [0-9] [special characters]. You have to find the reverse of the string.

For example:

 If the given string is: STR = "abcde". You have to print the string "edcba".
follow up:
Try to solve the problem in O(1) space complexity. 
Try solving now

3. Left View Of Binary Tree

Moderate
30m average time
60% success
0/80
Asked in companies
WalmartSalesforceDelhivery

You have been given a Binary Tree of 'n' nodes, where the nodes have integer values



Example :
If the input tree is as depicted in the picture: 

alt text

The Left View of the tree will be:  2 35 2 
Try solving now
03
Round
Medium
Video Call
Duration40 Minutes
Interview date8 Oct 2021
Coding problem3

This round was mainly based on resume and projects. First he asked me to introduce myself. Then we started talking about the courses I have done and he asked me about many of he courses that what was taught to me in these. He also asked about my branch which is Data science and what all are mainly taught in this. Then we moved on to projects. He asked me in depth about one of my projects which was based on deep learning. This discussion lasted till about 30 mins

1. Intersection of Two Linked Lists

Easy
25m average time
73% success
0/40
Asked in companies
OracleThought WorksIBM

You are given two Singly Linked Lists of integers, which may have an intersection point.

Your task is to return the first intersection node. If there is no intersection, return NULL.


Example:-
The Linked Lists, where a1, a2, c1, c2, c3 is the first linked list and b1, b2, b3, c1, c2, c3 is the second linked list, merging at node c1.

alt.txt

Problem approach

He firstly asked me to explain my approach and then to code it. So, I gave him my first approach: Reverse both the linked list and now start from the beginning of the nodes of both lists and find the nodes which are not similar to both, meanwhile keep track of the previous node also. The point where dissimilar nodes occur, that’s previous node would be the answer. He then asked me if I could solve it with another method.

Try solving now

2. C++ Question

He asked me the limit of int in c++

Problem approach

It was a straight forward question but I was a little confusing about the exact answer so I gave him an approximate answer

3. OOPS Questions

He asked straight definitions like abstraction, encapsulation, etc

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
918 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
1615 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