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

SDE - Intern

Samsung
upvote
share-icon
2 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 4 months
Topics: Data Structures and Algorithms, Objected Oriented Programming, DBMS, SQL, Operating System
Tip
Tip

Tip 1 : Never mention anything in RESUME in which you're not confident
Tip 2 : For on-campus opportunities try to maintain a good CGPA. Try to maintain at least 7.5 CGPA
Tip 3 : While practicing questions please make sure you make notes if them, it will be mostly required if your interview is scheduled in 1-2 days.
Tip 4 : Never submit questions just for the sake of increasing the count on problems solved. Try to think of one problem from a different perspective. 
Tip 5 : Please give timed contests it will be helpful in clearing ONLINE TESTS. Please note Interviews are easier than Online Tests and mostly standard questions are asked.

Application process
Where: Campus
Eligibility: Circuital Branches(CSE, ECE,EE) having CGPA more than 7
Resume Tip
Resume tip

Tip 1 : Mention only those things you feel confident
Tip 2 : If you're DSA heavy mention ranking if any, the number of problems solved. And if you're development heavy include projects and 2-3 lines about each project.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration70 minutes
Interview date9 Nov 2021
Coding problem3

It was held at 7:00 pm. STL functions were not allowed. But STL containers like queues were allowed. One question was easy-medium, one was medium and one was hard. Everyone got different sets of questions. Make sure you solve all the questions from Samsung online Test, as they tend to repeat. Only 2 sample test cases were visible and Other Test Cases were hidden.

1. Game of Stones

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

Given the count of total stones in a game. Two-player ‘Ale’ and ‘Bob’ are playing the game. Your task is to find who will win the game if both the players are playing optimally.

Rules of the game.

1. In a single turn, a player can choose a single stone or ‘even’ number of stones.

2. They will play alternatively, which means in the first chance ‘Ale’ will collect the stones, in second-chance ‘Bob’ will collect the stones. And always ‘Ale’ will start the game.

3. If any player is not able to take any stones then another player will win the game.

Try solving now

2. Largest Number in Binary Tree

Moderate
36m average time
60% success
0/80
Asked in companies
OLX GroupSamsungSprinklr

You have been given a Binary Tree of 'N' nodes where the nodes have integer values.

Your task is to find the largest number that could be formed by concatenating all its nodes values.

For example:
For the given binary tree:   

tree example

Output: 96553210    

Explanation: After concatenating all the numbers in the above binary tree this is the largest number that can be formed. 
Try solving now

3. Bridges In A Graph

Moderate
25m average time
65% success
0/80
Asked in companies
ArcesiumIBMOla

Given an undirected graph of V vertices and E edges. Your task is to find all the bridges in the given undirected graph. A bridge in any graph is defined as an edge which, when removed, makes the graph disconnected (or more precisely, increases the number of connected components in the graph).

For Example :

If the given graph is :

graph

Then the edge between 0 and 4 is the bridge because if the edge between 0 and 4 is removed, then there will be no path left to reach from 0 to 4.and makes the graph disconnected, and increases the number of connected components.

Note :

There are no self-loops(an edge connecting the vertex to itself) in the given graph.

There are no parallel edges i.e no two vertices are directly connected by more than 1 edge.
Try solving now
02
Round
Easy
Online Coding Interview
Duration60 minutes
Interview date23 Nov 2021
Coding problem4

The interviewer was very friendly. It started at 10:00 AM and lasted for 60 minutes. It was the only technical interview and NO HR interview was there. The video was kept on with screen sharing.

1. Sum of Digits

Easy
15m average time
85% success
0/40
Asked in companies
ProtiumMorgan StanleySamsung

Ninja is given an integer ‘N’. One day Ninja decides to do the sum of all digits and replace the ‘N’ with the sum of digits until it becomes less than 10. Ninja wants to find what will be the value of ‘N’ after applying this operation.

Help Ninja in finding out this value.

Try solving now

2. Sum Of Squares Of First N Natural Numbers

Easy
15m average time
85% success
0/40
Asked in companies
SprinklrSamsungIncture Technologies

You are given an integer 'N'. You need to find the sum of squares of the first 'N' natural numbers.

For example:
If 'N' = 4. You need to return 1^2 + 2^2 + 3^2 + 4^2 = 30.
Try solving now

3. Convert A Given Binary Tree To Doubly Linked List

Moderate
15m average time
80% success
0/80
Asked in companies
RazorpayGoldman SachsWells Fargo

Given a Binary Tree, convert this binary tree to a Doubly Linked List.

A Binary Tree (BT) is a data structure in which each node has at most two children.

A Doubly Linked List contains a previous pointer, along with the next pointer and data.

The order of nodes in Doubly Linked List must be the same as Inorder of the given Binary Tree.

The doubly linked list should be returned by taking the next pointer as right and the previous pointer as left.

You need to return the head of the Doubly Linked List.

For the given binary tree :

alt txt

You need to return the head to the doubly linked list.
The doubly linked list would be: 1 2 3 4 5 and can be represented as:

alt txt

Try solving now

4. Output Question

class A{    int n;    public :    void fun(A *a){        if(n == a->n){             cout << "Both values are same" << endl;        }else{            cout << "Both values are different" << endl;        }    }};int main(){    A obj1, obj2;    obj1.fun(&obj2);}Will this code compile?

Problem approach

I said No. But the answer to this question is Yes this code is will compile.
He was trying to ask that if a data member is private then if you declare 2 objects(let's say o1,o2) for that class. Then can you access the data member of a second object using the first object?

Here's your problem of the day

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

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - Intern
3 rounds | 4 problems
Interviewed by Samsung
1312 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Samsung
898 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 8 problems
Interviewed by Samsung
1027 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Samsung
1593 views
1 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15481 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15339 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10142 views
2 comments
0 upvotes