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

SDE - Intern

Samsung
upvote
share-icon
2 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 Months
Topics: Data Structures, Object Oriented Programming, Computer Networks, Operating Systems, DBMS
Tip
Tip

Tip 1 : Concentrate more on BT and BST
Tip 2 : Prepare your project well.

Application process
Where: Campus
Eligibility: >=7 CGPA, Circuital Branches
Resume Tip
Resume tip

Tip 1 : Keep it clean and concise
Tip 2 : Use single page, ATS-compatible resume

Interview rounds

01
Round
Medium
Online Coding Test
Duration90 Minutes
Interview date30 Oct 2021
Coding problem3

OA was given during the evening slot at around 5 PM for a duration of 90 minutes. The platform was cocubes and it was very user-friendly.

1. Invert a Binary Tree

Moderate
45m average time
55% success
0/80
Asked in companies
AppleSamsungFreshworks

You are provided with a Binary Tree and one of its leaf nodes. You have to invert this binary tree. Inversion must be done by following all the below guidelines:

• The given leaf node becomes the root after the inversion.

• For a node (say, ‘x’) 
    ○ If there exists the left child that is not yet taken then this child must become the right child of ‘x’.
    ○ If the left child is already taken then the right child is still on the right side of ‘x’.

• The parent of ‘x’ must be the left child of ‘x’.

For Example:

Example-img01
Example-img02

Consider the above binary tree (image- before inversion), if the given leaf node is ‘1’ then the binary tree after inversion becomes exactly the same as given in the image representing after inversion.

Note:

The given binary tree will only have distinct values of nodes.

Try solving now

2. Number of Islands

Easy
0/40
Asked in companies
MicrosoftMeeshoAmazon

You have been given a non-empty grid consisting of only 0s and 1s. You have to find the number of islands in the given grid.

An island is a group of 1s (representing land) connected horizontally, vertically or diagonally. You can assume that all four edges of the grid are surrounded by 0s (representing water).

Try solving now
Hard
20m average time
80% success
0/120
Asked in companies
Goldman SachsUberApple

You are given an arbitrary binary tree, a node of the tree, and an integer 'K'. You need to find all such nodes which have a distance K from the given node and return the list of these nodes.


Distance between two nodes in a binary tree is defined as the number of connections/edges in the path between the two nodes.


Note:

1. A binary tree is a tree in which each node has at most two children. 
2. The given tree will be non-empty.
3. The given tree can have multiple nodes with the same value.
4. If there are no nodes in the tree which are at distance = K from the given node, return an empty list.
5. You can return the list of values of valid nodes in any order. For example if the valid nodes have values 1,2,3, then you can return {1,2,3} or {3,1,2} etc.
Example :

Sample Output 2 explanation

Consider this tree above. The target node is 5 and K = 3. The nodes at distance 1 from node 5 are {2}, nodes at distance 2 from node 5 are {1, 4} and nodes at distance 3 from node 5 are {6, 3}.
Try solving now
02
Round
Easy
Video Call
Duration60 Minutes
Interview date18 Nov 2022
Coding problem2

It was a technical interview round taken around 1 PM. The interviewer was very friendly and helpful. First there was resume discussion for 10 minutes and he went on through it line by line asking about the skills mentioned. Then we briefly discussed my project and then technical part started.

1. Return Subsets Sum to K

Moderate
40m average time
75% success
0/80
Asked in companies
Thought WorksMicrosoftUber

Given an integer array 'ARR' of size 'N' and an integer 'K', return all the subsets of 'ARR' which sum to 'K'.

Subset of an array 'ARR' is a tuple that can be obtained from 'ARR' by removing some (possibly all) elements of 'ARR'.

Note :
The order of subsets is not important. 

The order of elements in a particular subset should be in increasing order of the index.
Try solving now

2. Technical Questions

It was like a rapid-fire round, to be honest. The interviewer shooted around 15-20 questions related to OS and OOPS within a span of 10 minutes. The questions were of very basic type and a bit medium. Topics include semaphore, paging, virtual memory, bankers algo, deadlock conditions, ram vs rom, class vs struct, polymorphism etc.

Problem approach

Tip 1 : Be perfect with the basics of OOPS.
Tip 2 : Revise the concepts of OS and focus on deadlock.

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