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

SDE - 2

Samsung
upvote
share-icon
4 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Journey
As a software engineer, I began my journey by studying computer science in college and learning programming languages such as Java, C++, and Python. I also gained practical experience through internships and personal projects. After graduating, I worked as a software developer at a startup for a few years, where I gained experience in full-stack development, DevOps, and agile methodologies. I also worked on side projects to improve my skills and expand my portfolio. To prepare for an SDE 2 role, I focused on developing my skills in leadership, project management, and software architecture. I also stayed up-to-date with new technologies and trends in the industry by attending conferences and networking with other professionals. During the SDE 2 interview, I was asked about my experience in designing and implementing large-scale systems, as well as my ability to lead a team of developers. I also had to solve complex coding problems and demonstrate my knowledge of computer science fundamentals. Ultimately, my hard work and dedication paid off, and I was offered the SDE 2 role. I continue to learn and grow as a software engineer, always striving to improve my skills and take on new challenges
Application story
After gaining several years of experience as a software engineer, I decided to apply for an SDE 2 role at a well-known tech company. I had heard great things about the company culture and the exciting projects they were working on, and I was eager to join their team. I began by researching the company and the job description, making sure that I met all of the qualifications and requirements listed. I updated my resume and wrote a compelling cover letter that highlighted my relevant experience and accomplishments. I submitted my application through the company's website and waited anxiously for a response.
Why selected/rejected for the role?
I passed all 4 round of interview and next day itself I got confirmation letter and after 7 day I got offer letter from the company.
Preparation
Duration: 6 months
Topics: Data structures and algorithms, software development, devops, dbms
Tip
Tip

Tip 1 : work in projects and gain some experience
Tip 2 : solve coding questions as much as you can

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

Tip 1: mention all your skills set
Tip 2: mention your project link

Interview rounds

01
Round
Medium
Online Coding Test
Duration30 minutes
Interview date29 Mar 2023
Coding problem2

My 1st round, in this round I got asked about my previous experience and 2-3 simple coding questions.

1. Special Sum of Array

Easy
15m average time
80% success
0/40
Asked in companies
OptumSamsungNokia

You have been given an array/list ‘arr’ of length ‘N’, which contains single digit elements at every index. Your task is to return the sum of all elements of the array. But the final sum should also be a single digit.

To keep the output single digit - you need to keep adding the digits of the output number till a single digit is left.

For example:
For the given array [5, 8, 4, 9]

The sum of the elements of the array will be
5 + 8 + 4 + 9 = 26.
Since 26 is not a single-digit number, we will again take the sum of the digits of 26. 
2 + 6 = 8.
Now 8 is a single-digit number. So we will stop here and return 8.
Try solving now

2. Reverse the String

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

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. 
Problem approach

1. Declare a string variable to store the input string.
2. Use the reverse() function to reverse the string in-place.
3. Print out the reversed string.

Try solving now
02
Round
Medium
Online Coding Test
Duration30 minutes
Interview date30 Mar 2023
Coding problem1

My 2nd round of interview where I was asked about my previous projects, what was my roll, what types of work I was doing etc and coding questions also are there

1. Stack Implementation Using Array

Easy
20m average time
70% success
0/40
Asked in companies
QualcommNatwest GroupOracle

Stack is a data structure that follows the LIFO (Last in First out) principle. Design and implement a stack to implement the following functions:

1. Push(num): Push the given number in the stack if the stack is not full.

2. Pop: Remove and print the top element from the stack if present, else print -1.

3. Top: Print the top element of the stack if present, else print -1.

4. isEmpty: Print 1 if the stack is empty, else print 0.

5. isFull: Print 1 if the stack is full, else print 0.


You have been given ‘m’ operations which you need to perform in the stack. Your task is to implement all the functions of the stack.


Example:
We perform the following operations on an empty stack which has capacity 2:

When operation 1 1 is performed, we insert 1 in the stack.

When operation 1 2  is performed, we insert 2 in the stack. 

When operation 2 is performed, we remove the top element from the stack and print 2.

When operation 3 is performed, we print the top element of the stack, i.e., 3.

When operation 4 is performed, we print 0 because the stack is not empty.

When operation 5 is performed, we print 0 because the stack is size 1, which is not equal to its capacity.
Problem approach

1. Declare an integer array to store the stack elements and integer variables to keep track of the stack size and top index.
2. Define push() and pop() functions to add and remove elements from the stack respectively, and update the size and top index accordingly.
3. Print out the stack elements after performing some operations.

Try solving now
03
Round
Hard
Online Coding Test
Duration40 minutes
Interview date31 Mar 2023
Coding problem3

In my 4th round of interview, it was about 40 minutes and I was given questions from system design and data structures and algorithms

1. Design Question

Design a chat application for a large company with thousands of employees.

Problem approach

1. Define the application requirements, such as the ability to send text and multimedia messages, support for groups and channels, and real-time notifications.
2. Determine the system architecture and components, such as a front-end client, a back-end server, a database, and a message broker for pub/sub functionality.
3. Choose appropriate technologies for each component, such as React for the client, Node.js for the server, MySQL for the database, and RabbitMQ for the message broker.
4. Consider scalability and performance factors, such as horizontal scaling of the server, caching of frequently accessed data, and efficient message delivery mechanisms.
5. Define the security measures, such as encryption of data in transit and at rest, access control using user authentication and authorization, and monitoring and logging of user activity.
6. Conduct testing and debugging to ensure the application meets the requirements and functions properly.
7. Continuously monitor and update the application to address any issues or add new features as needed.

2. 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.
Problem approach

1. Define a struct to represent a queue node with fields for the node value and a pointer to the next node.
2. Declare two node pointers to keep track of the queue front and rear.
3. Define a function to add a new node to the rear of the queue and another function to remove the front node.
4. Print out the queue elements after performing some operations.

Try solving now

3. Reverse Linked List

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

Given a singly linked list of integers. Your task is to return the head of the reversed linked list.

For example:
The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Follow Up :
Can you solve this problem in O(N) time and O(1) space complexity?
Problem approach

1. Define a struct to represent a linked list node with fields for the node value and a pointer to the next node.
2. Declare a node pointer to keep track of the current node, another node pointer to keep track of the next node, and another node pointer to keep track of the previous node.
3. Use a while loop to iterate through each node in the linked list and reverse the links by updating the next pointer of each node to point to the previous node.
4. Print out the reversed linked list.

Try solving now
04
Round
Easy
HR Round
Duration30 minutes
Interview date31 Mar 2023
Coding problem1

This was my last round of interview which was HR round.

1. Basic Hr Questions

1. Where do you see yourself in 5 years?

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 - 2
3 rounds | 4 problems
Interviewed by Samsung
2558 views
0 comments
0 upvotes
company logo
SDE - 2
2 rounds | 2 problems
Interviewed by Samsung
1665 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 8 problems
Interviewed by Samsung
1253 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 7 problems
Interviewed by Samsung
1771 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
5 rounds | 12 problems
Interviewed by Walmart
29570 views
8 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Amazon
6678 views
1 comments
0 upvotes
company logo
SDE - 2
6 rounds | 8 problems
Interviewed by Amazon
5176 views
0 comments
0 upvotes