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

Fullstack Developer

Samsung
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 10 months
Topics: Data Structures , Algorithms , Data Base management systems . OOPS(very important),Web Development Principles
Tip
Tip

Tip 1 : Be patient and give yourself at least 10 months of dedicated placement preparation time
Tip 2 : OOPS and DBMS are topics that people do not prepare well but they are asked in the interviews alot . So prepare them well 
Tip 3 : Start dedicated CP once you are confident upon your DSA skills .

Application process
Where: Campus
Eligibility: 7 CGPA
Resume Tip
Resume tip

Tip 1 : Do not mention irrelevant achievements
Tip 2 : Strictly make 1 page resume and also mention skills added/learnt from your internships and trainings

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 minutes
Interview date15 May 2021
Coding problem2

It was a 65 minute , 2 coding questions round .
The environment was good , 
The exam was at 12 noon

1. LCA Of Binary Tree

Moderate
10m average time
90% success
0/80
Asked in companies
GrabDisney + HotstarShareChat

You have been given a Binary Tree of distinct integers and two nodes ‘X’ and ‘Y’. You are supposed to return the LCA (Lowest Common Ancestor) of ‘X’ and ‘Y’.


The LCA of ‘X’ and ‘Y’ in the binary tree is the shared ancestor of ‘X’ and ‘Y’ that is located farthest from the root.


Note :
You may assume that given ‘X’ and ‘Y’ definitely exist in the given binary tree.
For example :
For the given binary tree

Example

LCA of ‘X’ and ‘Y’ is highlighted in yellow colour.
Try solving now

2. Topological Sort

Moderate
30m average time
70% success
0/80
Asked in companies
SamsungSprinklrUrban Company (UrbanClap)

A Directed Acyclic Graph (DAG) is a directed graph that contains no cycles.

Topological Sorting of DAG is a linear ordering of vertices such that for every directed edge from vertex ‘u’ to vertex ‘v’, vertex ‘u’ comes before ‘v’ in the ordering. Topological Sorting for a graph is not possible if the graph is not a DAG.

Given a DAG consisting of ‘V’ vertices and ‘E’ edges, you need to find out any topological sorting of this DAG. Return an array of size ‘V’ representing the topological sort of the vertices of the given DAG.

For example, Consider the DAG shown in the picture.

alt tex

In this graph, there are directed edges from 0 to 1 and 0 to 3, so 0 should come before 1 and 3. Also, there are directed edges from 1 to 2 and 3 to 2 so 1 and 3 should come before 2.

So, The topological sorting of this DAG is {0 1 3 2}.

Note that there are multiple topological sortings possible for a DAG. For the graph given above one another topological sorting is: {0, 3, 1, 2}

Note:
1. It is guaranteed that the given graph is DAG.
2. There will be no multiple edges and self-loops in the given DAG.
3. There can be multiple correct solutions, you can find any one of them. 
4. Don’t print anything, just return an array representing the topological sort of the vertices of the given DAG.
Try solving now
02
Round
Medium
Video Call
Duration50 minutes
Interview date8 Jul 2021
Coding problem1

The round was based more upon the OS , DBMS , Networking and Computer Architecture and web based.
Is the tag and tag same? Define Image Map?

1. OS Question

I was told to write code for a singleton class

03
Round
Medium
Video Call
Duration50 Minutes
Interview date30 Jul 2021
Coding problem1

The round included topics of DSA , OS , OOPS , CN and dbms and a lot about my internship experience.
What are the different data types present in javascript? What are some common clauses used with SELECT query in SQL? What is Cursor? How to use a Cursor?

1. Build Heap

Moderate
30m average time
70% success
0/80
Asked in companies
SAP LabsSamsungOYO

You are given an integer array with N elements. Your task is to build a max binary heap from the array.

A max-heap is a complete binary tree in which the value of each internal node is greater than or equal to the values of the children of that node.

Note :
You do not need to print anything, just return the vector representation of the heap such that the input array follows 0 - based indexing and :

The left child of the ith node is at (2 * i + 1)th index.

The right child of the ith node is at (2 * i + 2)th index.

Parent of the node present at ith index is at (i - 1) / 2 indexes.
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
Fullstack Developer
2 rounds | 2 problems
Interviewed by Samsung
2210 views
0 comments
0 upvotes
company logo
Software Engineer
2 rounds | 2 problems
Interviewed by Samsung
1596 views
1 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Samsung
1616 views
1 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
Fullstack Developer
6 rounds | 5 problems
Interviewed by Microsoft
2281 views
0 comments
0 upvotes
company logo
Fullstack Developer
2 rounds | 2 problems
Interviewed by Amdocs
1862 views
0 comments
0 upvotes
company logo
Fullstack Developer
5 rounds | 7 problems
Interviewed by Oracle
1227 views
0 comments
0 upvotes