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
Hello my name is akshat and I'm gonna tell you my journey. I was working in my previous company from 2.5 years, so I decided to switch in some product based company.So I started my journey towards my dream job, but that job required many skills and I knew I had a passion for it, but I had to start from the very basics. I started by doing research and learning as much as I could about new roll. I watched online tutorials, read books, and attended workshops to get a better understanding of the concepts and techniques. Once I had a grasp on the basics, I started to gain hands-on experience by working on personal projects . This helped me build my portfolio and showcase my skills to potential employers. However, I faced a lot of rejections and setbacks along the way. But, I didn't give up. I continued to learn and grow from my mistakes, and eventually, I landed an interview for my dream job. During the interview, I was able to demonstrate my knowledge and skills, and I was offered the job. It was a proud moment for me, and I knew that all of the hard work and dedication had paid off. Looking back, I realized that the journey towards achieving my goal was not easy, but it was worth it. I learned that with perseverance and dedication, anything is possible, and that success comes from taking small steps towards a bigger goal.
Application story
When I was working in my previous company that time ive started applying for switch. So I was applying in many companies from linkedin, naukri.com and perticular companies career page but for Samsung I have applied from one of my referral and I selected for interview.
Why selected/rejected for the role?
So there were 4 round of interview process and I cleared all this round and later I got offer letter
Preparation
Duration: 6 months
Topics: Java Programming languages, Algorithms and Data Structures, Software Development Methodologies, DBMS, System Design
Tip
Tip

Tip 1 : I've watched youtube tutorials
Tip 2 : Read some books; they will help you.
Tip 3 : Do some great projects.

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

Tip 1 : Keep short, and don't put false things
Tip 2 : Highlight your technical skills.

Interview rounds

01
Round
Medium
Video Call
Duration30 minutes
Interview date29 Mar 2023
Coding problem2

So this was my first round of interview and it was basics data structures and algorithms questions where during video call they told me problem and I shared my screen and write the output.

1. Maximum In All Sub-Arrays Of Size K

Easy
10m average time
90% success
0/40
Asked in companies
DirectiCIS - Cyber InfrastructureSamsung

Given an array/list ‘ARR’ of integers and an integer ‘K’. You are supposed to return the maximum for every subarray of the given array of length ‘K’.

Note :
An array ‘B’ is a subarray of an array ‘A’ if ‘B’ that can be obtained by deletion of, several elements(possibly none) from the start of ‘A’ and several elements(possibly none) from the end of ‘A’. 
Problem approach

Step 1 : Initialize a variable to store the maximum element as the first element of the array.
Step 2 : Iterate through the rest of the array and compare each element to the maximum element. If the element is greater than the maximum element, update the maximum element variable. Return the maximum element variable after iterating through the entire array.

Try solving now

2. Check If The String Is A Palindrome

Easy
10m average time
90% success
0/40
Asked in companies
SprinklrCIS - Cyber InfrastructureSamsung

You are given a string 'S'. Your task is to check whether the string is palindrome or not. For checking palindrome, consider alphabets and numbers only and ignore the symbols and whitespaces.

Note :

String 'S' is NOT case sensitive.

Example :

Let S = “c1 O$d@eeD o1c”.
If we ignore the special characters, whitespaces and convert all uppercase letters to lowercase, we get S = “c1odeedo1c”, which is a palindrome. Hence, the given string is also a palindrome.
Problem approach

Step 1 : Initialize two pointers, one pointing to the beginning of the string and the other pointing to the end of the string.
Step 2 : Iterate through the string, comparing the characters at each pointer. If the characters match, move the pointers towards each other, continuing the comparison until they meet at the middle of the string. If all characters match, return True. Otherwise, return False.

Try solving now
02
Round
Medium
Video Call
Duration40 minutes
Interview date30 Mar 2023
Coding problem1

1. Manager Questions

Tell me about your role in your previous company?

What were the other responsibilities?

What challenges did you face while working in the project?

How did you overcome those problems?

03
Round
Hard
Online Coding Test
Duration60 minutes
Interview date31 Mar 2023
Coding problem3

1. 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

Step 1 : Initialize an empty stack and push each character of the input string onto the stack.
Step 2 : Pop the characters off the stack one by one and append them to a new string. Return the new string.

Try solving now

2. Height of Binary Tree

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

The height of a tree is equal to the number of nodes on the longest path from the root to a leaf.


You are given an arbitrary binary tree consisting of 'n' nodes where each node is associated with a certain value.


Find out the height of the tree.


Example :
Input: Let the binary tree be:

Output: 2

Explanation: The root node is 3, and the leaf nodes are 1 and 2.

There are two nodes visited when traversing from 3 to 1.
There are two nodes visited when traversing from 3 to 2.

Therefore the height of the binary tree is 2.
Problem approach

Step 1 : Check if the binary tree is empty. If it is, return 0.
Step 2 : Recursively calculate the height of the left and right subtrees of the binary tree, and return the maximum height plus one.

Try solving now

3. URL Shortener

Easy
10m average time
90% success
0/40
Asked in companies
AdobeMakeMyTripShareChat

You have given a URL id – 'N' consisting of only digits. Your task is to generate a short URL for the given URL id.

To generate a short URL, you need to convert the given URL id to 62 base number where digits of the number are:[“0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ”] i.e “0” corresponds to 0, “a” corresponds to 10, “Z” corresponds to 61, and “10” corresponds to 62, “11” corresponds to 63, and so on….

Follow Up:
Can you solve this in logarithmic time and space complexity?
Problem approach

Step 1 : Store the original URL in a database and generate a unique identifier for the shortened URL. This identifier can be generated by hashing the original URL or by using an auto-incrementing counter. Store this identifier along with the original URL in the database.
Step 2 : When a user requests the shortened URL, lookup the original URL in the database using the unique identifier and redirect the user to the original URL.

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

1. Basic HR Questions

Which was your previous company?

How was your experience there?

What are your strengths and weaknesses?

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
1664 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
2028 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
6677 views
1 comments
0 upvotes
company logo
SDE - 2
6 rounds | 8 problems
Interviewed by Amazon
5175 views
0 comments
0 upvotes