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

SDE - Intern

Samsung
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
Before cracking any interview, one needs to strengthen their basics. So, I started practicing DSA and reading all the vital topics and subjects like DBMS, DSA, Networking, and Operating Systems. After preparing the top 100 or 150 questions on each topic, I worked on my projects and resume, which was the most important step. Throughout my 4-year journey in college, I focused on DSA, resume building, and core fundamentals.
Application story
This company visited my campus for the placement. We just had to upload our resume and fill in all details in the form. After the online test, around 15 candidates were selected for interviews.
Why selected/rejected for the role?
I was able to clear all the rounds. I think it was because I answered correctly to almost all the solutions, gave quick answers, had good projects listed on my resume and had a little knowledge about the company. I was able to impress the interviewer.
Preparation
Duration: 3 months
Topics: C++, OOPs, Pointers, Dynamic programming, Recursion, Graphs , Hash maps and Priority Queues, Operating system, DBMS
Tip
Tip

Tip 1 : Practice at least easy and medium questions from coding platforms under Top Interview Questions.
Tip 2 : Don't learn each and every question you solved but try to solve questions in a way that you can solve its variation during interviews.
Tip 3 : Do one project (one is enough) which you can explain with full technical details (why you used this technology, and all logic you applied in implementation).
Tip 4: At least read the Round 1 (Coding Round) archives from online platforms to prepare your mind for the types of questions that companies usually ask. (The Coding Round is the toughest step in the whole process to clear).

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

Tip 1: Have at least one project that you have created yourself, and ensure you know all the technical questions related to that project. (I feel the project domain hardly matters, whether it is web development, Android, or ML/AI.)

Tip 2: Only include the skills on your resume that are required by the company. For example, if you know the company does not require networking domain knowledge, do not include it unnecessarily, especially if you are not very confident in it. For on-campus internships, resume shortlisting is very easy, so avoid adding anything unnecessary that might cause you trouble during the interview.

Interview rounds

01
Round
Medium
Online Coding Test
Duration100 minutes
Interview date15 Dec 2022
Coding problem3

There were 3 coding questions in this round. It was conducted from 1:30 to 3:00 pm. The coding platform was very good, with auto-indentation and auto-completion of brackets. Having the camera on was required.

1. Ninja and the Storyteller

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

Ninja is an avid story lover. Today, he decides to go to the famous Storyteller of Ninjaland to listen to new stories. The Storyteller takes 'Y' coins to tell one story. The Storyteller has also put on a special offer for Ninja that for every 'X' story that the Storyteller tells to Ninja, the Storyteller will tell one story to Ninja free of cost, i.e., without taking any extra coins. Ninja currently has 'Z' coins with himself. He wants to know how many stories the Storyteller will tell him if he goes to the Storyteller with 'Z' coins.

Problem approach

It was an easy question:
First take a sum variable (to store final answer) and initialize it with 0.
Take a temp and store X/Y in it and add it to sum then apply a loop and check:
if temp < Z return the sum
else add temp/Z to sum and update temp to temp/Z and continue the process.

Try solving now

2. Top K Stocks to Sell

Moderate
0/80
Asked in companies
SamsungFlipkart limited

It was a busy day at Ninja's Stock Exchange as stock prices fluctuated throughout the day. Trading isn't Ninja's cup of tea, so he appointed you to help him.

You are given 'Q' queries, each query of type-1 is an update query in which you are given ‘{Name, Price}’ denoting the name of the stock that needs to be updated with the given price, for every query of type-2 you need to find the maximum money that can be collected by selling the top 'K' stocks at that particular moment of time.

The closing price of a particular stock is equal to its last updated price. Find the total money that can be collected after selling at most ‘K’ stocks for every query of type-2.

Note :
Then given queries are in the form of a stream (they are sequential), so they should be processed in the given order. That is: you should not solve them offline by iterating through the back or by iterating in any other order.
For Example :
If N = 4 , K = 2 and Queries = { 1, “a,” 30 }, { 1, “b,” 20 } , { 1, “a,” 10 } , { 1, “c,” 100 } , { 2 }

There is a query of type-2 after processing four queries of type-1.
Then we can sell in the possible ways: 
Sell “a” and “b” and collect 10 + 20 = 30.
Sell “b” and “c” and collect 20 + 100 = 120.
Sell “a” and “c” and collect 10 + 100 = 110.

Therefore we can collect a maximum of 120. Note that “a” is being sold at 10 and not 30 because the last updated price in the stream for “a” was 10.
Problem approach

First, I found that this can easily be done using the brute-force approach of taking a hashmap to store all the numbers (from the minimum value in the input range to the maximum value in the input range) with their frequency of appearance. Then, I will run a loop for each query range and output the values that are greater than kkk. In this solution, 50% of the test cases give TLE.

Then I realized that I need not run the loop for every range. Instead, I should use an array of size 100,000 and:

  • First, mark the start and end of each range in one loop.
  • Then, fill the frequencies for the elements in between by looping from the minimum to the maximum value in my range.
  • Finally, for each query, I get my answer in constant time by subtracting the frequency of the range elements from the frequency array.
Try solving now

3. Spiral Order Traversal of a Binary Tree

Easy
20m average time
75% success
0/40
Asked in companies
PayUAtlassianAmazon

You have been given a binary tree of 'N' nodes. Print the Spiral Order traversal of this binary tree.

For example
For the given binary tree [1, 2, 3, -1, -1, 4, 5, -1, -1, -1, -1]
    1
   / \
  2   3
     / \
    4   5

Output: 1 3 2 4 5
Try solving now
02
Round
Easy
HR Round
Duration40 minutes
Interview date15 Dec 2022
Coding problem1

It was held on the Gmeet platform. The interviewer was a very experienced person and was very nice as well. He made me comfortable by first introducing himself in a detailed manner and then asking for my introduction. Since I felt that his internet connection was not very good, he turned off his camera. However, I decided not to turn off mine, as in online interviews, your face reveals your confidence.

1. Basic HR Questions

  • Tell me about yourself.
  • Why are you interested in this role?
  • What are your strengths and weaknesses?
  • Where do you see yourself in 5 years?
Problem approach

Tip 1: The HR person is generally very experienced, so never tell them anything false just to impress them.
Tip 2: Include only the points in your introduction that you want to discuss further.
Tip 3: Show interest in your growth, the work they are offering, and how they can help you build your skills better.

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 - Intern
3 rounds | 4 problems
Interviewed by Samsung
1352 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Samsung
919 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 8 problems
Interviewed by Samsung
1057 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Samsung
1616 views
1 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15606 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15500 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10216 views
2 comments
0 upvotes