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

SDE - Intern

Samsung Electronics
upvote
share-icon
3 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Journey
Being from a non-CS background, handling core CS subjects (DSA, Web Development, Operating Systems, etc.) requires consistency and a strong eagerness to learn. It all started in the 2nd year by solving at least one DSA problem every day, and by creating good projects in the 3rd year, this effort led to the desired results.
Application story
It all started with a notification stating that Samsung R&D was visiting our campus to hire final-year students for a 6-month intern role. After 6–7 days, the online test was conducted offline on campus with strict proctoring. The test lasted 3 hours and included one question that revolved around the concept of a greedy + hash map approach, which could also be solved using recursion and bit masking. Candidates shortlisted for the interview were called late at night, around 1:00 A.M. A total of 11 candidates were shortlisted, and the interviews were conducted the next day. Finally, 3 candidates were selected for the 6-month intern role.
Why selected/rejected for the role?
Selection is purely based on performance, as the focus is on the candidate’s explanation of the problem solved during the 3-hour online assessment. Evaluation also includes advanced DSA topics such as Segment Tree and Fenwick Tree (basic coding), as well as basic topics like Linked Lists. Additionally, a deep understanding of the projects mentioned on the resume is required.
Preparation
Duration: 6 months
Topics: Data Structures and Operating Systems, Web Development, Operating Systems, Database Management Systems, Object-Oriented Programming, LLD Basics (Design Patterns)
Tip
Tip

Tip 1: Solve at least one DSA sheet thoroughly.
Tip 2: Build a strong project in your 3rd year.
Tip 3: Maintain a decent CPI above 8 (for freshers).

Application process
Where: Campus
Eligibility: 7.5+ CGPA, 75%+ in 10th and 12th, (Salary Package: 15.5 LPA)
Resume Tip
Resume tip

Tip 1: Mention strong projects on your resume, as they will give you an edge over others.

Tip 2: Be sure to include only those things on your resume that you are familiar with.

Interview rounds

01
Round
Hard
Online Coding Test
Duration180 minutes
Interview date6 Oct 2024
Coding problem1

It was a 3-hour online coding test consisting of one question, held in the evening at 4:00 P.M. Eleven students were shortlisted for the next round.

1. Inverting Amplifier

Moderate
0/80
Asked in company
Samsung Electronics

You are working with a digital signal processor that operates on a binary matrix of signals with 'N' rows and 'M' columns. You are given this matrix and an integer 'K'.

The processor has a special "inverting amplifier" that can be applied to any column. When applied, it toggles every signal in that column (0 becomes 1, and 1 becomes 0).

Your task is to apply this inverting amplifier exactly 'K' times to a set of columns of your choice. You are allowed to apply the amplifier to the same column multiple times. The goal is to maximize the number of rows that consist entirely of '1's after performing the 'K' operations.


Problem approach

Brute Force Approach (Recursive Approach):
Since we are given a binary matrix of size N × M and an integer K, we maintain all possible combinations (as strings) of length M whose values sum to K.

For example, for the matrix [[1, 0, 1], [1, 1, 1], [1, 0, 1]] and K = 3, one possible combination could be 111, 102, 120, etc. We iterate over all the generated combination values, which represent the number of times each specific column is toggled. In each iteration, we maintain the maximum number of 1’s in any row, l_max, and update g_max = max(g_max, l_max), where g_max represents the global maximum number of 1’s in a row. We repeat these steps for all possible combinations to get the final answer.

Optimal Approach (Greedy + Hash Map Based Approach):
We take advantage of the fact that identical rows remain the same after performing K operations on columns (regardless of which columns).

Step 1: Create a hashmap to store the count of each identical row.
For example, for [[1, 0, 1], [1, 1, 1], [1, 0, 1]], the hashmap will look like:
101 -> 2, 111 -> 1

Step 2: Iterate over the hashmap and count the number of zeroes in each row. If the number of zeroes <= K and (K - number_of_zeroes) % 2 == 0, then it is possible to convert that row into all 1’s. Update g_max with map[key].

Explanation of the conditions:

The first condition is straightforward: to convert a row to all 1’s, the number of zeroes must be less than or equal to K.

Performing an operation twice on the same column nullifies its effect. That is why the second condition (K - number_of_zeroes) % 2 == 0 is necessary.

Try solving now
02
Round
Medium
Face to Face
Duration75 minutes
Interview date6 Oct 2024
Coding problem2

The round started with an introduction. Then the interview moved to the explanation of my solution to the 3-hour coding test. We discussed how I approached the question and my thought process, from the brute-force to the optimal approach.

Next, the interviewer asked a simple Linked List question: how to delete a node in a linked list if a pointer to the node is given. This was followed by a discussion on Fenwick Trees, including their implementation and use cases.

We then moved on to my project, which was related to an educational website. The discussion covered authorization, various types of tokens, session data management, and a brief discussion on RBAC (Role-Based Access Control).

Finally, 5 students were shortlisted for the next round.

1. Delete Node In A Linked List

Easy
15m average time
80% success
0/40
Asked in companies
HSBCAdobeCIS - Cyber Infrastructure

You are given a Singly Linked List of integers and a reference to the node to be deleted. Every node of the Linked List has a unique value written on it. Your task is to delete that node from the linked list.

A singly linked list is a linear data structure in which we can traverse only in one direction i.e. from Head to Tail. It consists of several nodes where each node contains some data and a reference to the next node.

Note:

• The reference to the head of the linked list is not given.
• The node to be deleted is not a tail node.
• The value of each node in the Linked List is unique.
• It is guaranteed that the node to be deleted is present in the linked list.

A sample Linked List-

singly_linkedlist

Problem approach

Since changing the links alone won’t work, the only way is to swap the node’s value with the next adjacent node’s value and then perform the normal deletion operation in the linked list.

Try solving now

2. Fenwick Tree

Moderate
15m average time
85% success
0/80
Asked in companies
Goldman SachsAmazonSamsung Electronics

You are given an array/list 'ARR' of ‘N’ integers, and ‘Q’ queries. Each query can be of two types:

Given 2 integers ‘L’,’R’ ( L>=0 and R<N ) find the sum of all the elements of the array with the index in the range 'L' and 'R' (inclusive). This is a query of type range sum.

Given an index ‘i’ update the value of ARR[i] to a given integer ‘X’. This is a query of type point update.

Your task is to perform the queries on the given array and return the desired output for each query.

Problem approach

I was explaining the standard Fenwick Tree code.

Try solving now
03
Round
Easy
HR Round
Duration20 minutes
Interview date7 Oct 2024
Coding problem0

The round started with some casual chit-chat, followed by a discussion about my project. Then, basic HR-related questions were asked, and the round was concluded. Three students, including me, were selected for the intern role.

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
SDE - 1
3 rounds | 4 problems
Interviewed by Samsung Electronics
824 views
0 comments
0 upvotes
Software Engineer
3 rounds | 6 problems
Interviewed by Samsung Electronics
794 views
2 comments
0 upvotes
SDE - 1
3 rounds | 6 problems
Interviewed by Samsung Electronics
790 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3452 views
0 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