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

SDE - 1

Samsung
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Journey
I started my journey with the Coding Ninjas DSA course, and then I got this opportunity where my learning at Coding Ninjas really helped. I had already practiced all the questions in the course, and it really made a difference.
Application story
I saw the opening on LinkedIn. I applied with the help of my friend, who told me about the opening, and I applied through a referral. Then, within two weeks, I received the coding round link.
Why selected/rejected for the role?
I was rejected in the final round because of my lapse in knowledge of basic computer fundamentals. I remember I forgot the difference between function overloading and overriding.
Preparation
Duration: 12 months
Topics: Data Structures, Graphs & Trees, OOPS, Algorithms, Dynamic Programming
Tip
Tip

Tip 1: Practice at least 500+ questions.
Tip 2: Revise your concepts.
Tip 3: Do at least 2-3 projects.

Application process
Where: Campus
Eligibility: NA
Resume Tip
Resume tip

Tip 1: Make it a one-pager.
Tip 2: Include only relevant information.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date20 Jan 2023
Coding problem1

1. Bob's Task

Moderate
30m average time
80% success
0/80
Asked in companies
OYOSamsungJosh Technology Group

Bob has been given a binary tree having N nodes. He has been asked to check if all the leaf nodes are at the same level.

Your task is to help Bob in checking if all the leaf nodes are at the same level or not. Return true if all the leaf nodes are at the same level otherwise return false.

A binary tree is a hierarchical data structure in which each node has at most two children.

Any node whose left and right child are null is called a leaf node in a binary tree.

Example:
Consider the given binary tree:

For the given tree the leaf nodes are 5, 4, 7, 6. All these nodes are on the same level. So the output will be True. 
Try solving now
02
Round
Easy
Video Call
Duration60 minutes
Interview date30 Jan 2023
Coding problem2

1. Number of Longest Increasing Subsequence

Moderate
0/80
Asked in companies
AmazonSamsungTata1mg

Given an integer array ‘arr’ of length ‘n’, return the number of longest increasing subsequences in it.


The longest increasing subsequence(LIS) is the longest subsequence of the given sequence such that all subsequent elements are in strictly increasing order.


Example:
Input: ‘n’ = 5, ‘arr’ = [50, 3, 90, 60, 80].

Output: 2

Explanation: 
In this array, the longest increasing subsequences are [50, 60, 80] and [3, 60, 80]. 

There are other increasing subsequences as well, but we need the number of the longest ones. Hence the answer is 2.
Try solving now

2. Sum At Kth Level

Easy
15m average time
80% success
0/40
Asked in companies
MicrosoftSamsungJosh Technology Group

You are given a ‘root’ of the binary tree, and you have to return the sum of all nodes present at the Kth level from the top. The root node is considered as level 1, and below it is level 2, and so on.

Note:

A binary tree is a tree in which each node has at most 2 children.
Example:
For Example, the root node is given as follows :
‘ROOT’ = 1 2 3 4 -1 -1 5 -1 -1 -1 -1 and ‘K’ = 2, Then the sum of all nodes at K-level will be 5. This is because 2 and 3 are present at level 2 and 2 + 3 = 5. Therefore 5 is the answer.
Try solving now
03
Round
Hard
Video Call
Duration45 minutes
Interview date20 Feb 2023
Coding problem3

1. Puzzle

[ ]  [ ]
[ ]  [ ]  [ ]  [ ]
     [ ]  [ ]
He asked me to fill the numbers from 1 to 8 in these 8 boxes, one number exactly once, such that no two consecutive elements are
adjacent (diagonally, horizontally or vertically) to each other.

2. Technical Questions

He asked about CPU scheduling algorithms. (Learn)
Difference between preemptive and non- preemptive algorithms. (Learn)
Round Robin algorithm. (Learn)
What is polymorphism? (Learn)
Difference between overloading and overriding. (Learn)

3. Implement a Queue

Easy
20m average time
80% success
0/40
Asked in companies
QualcommDell TechnologiesMicrosoft

Implement a Queue Data Structure specifically to store integer data using a Singly Linked List or an array.

You need to implement the following public functions :

1. Constructor: It initializes the data members as required.

2. enqueue(data): This function should take one argument of type integer. It enqueues the element into the queue.

3. dequeue(): It dequeues/removes the element from the front of the queue and in turn, returns the element being dequeued or removed. In case the queue is empty, it returns -1.

4. front(): It returns the element being kept at the front of the queue. In case the queue is empty, it returns -1.

5. isEmpty(): It returns a boolean value indicating whether the queue is empty or not.
Operations Performed on the Queue :
Query-1(Denoted by an integer 1): Enqueues integer data to the queue.

Query-2(Denoted by an integer 2): Dequeues the data kept at the front of the queue and returns it to the caller, return -1 if no element is present in the queue.

Query-3(Denoted by an integer 3): Fetches and returns the data being kept at the front of the queue but doesn't remove it, unlike the dequeue function, return -1 if no element is present in the queue.

Query-4(Denoted by an integer 4): Returns a boolean value denoting whether the queue is empty or not.
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

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

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
4 rounds | 6 problems
Interviewed by Samsung
1921 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 4 problems
Interviewed by Samsung
1221 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Samsung
1427 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by Samsung
419 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
115097 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
58238 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
35147 views
7 comments
0 upvotes