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

Software Engineer

Samsung R&D Institute
upvote
share-icon
5 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 18 months
Topics: LinkedList, Stacks, Queues, Trees, Graphs, Recursion and backtracking, Dynamic programming
Tip
Tip

Tip 1 : Participate in live contests and upsolve the problems which you couldn't solve during contest
Tip 2 : Focus on understanding all the Data structures and algorithms in deep
Tip 3 : Revise all DSA concepts in regular basis

Application process
Where: Linkedin
Eligibility: above 7.5
Resume Tip
Resume tip

Tip 1: Maintain 1 page resume, with all the necessary hyper links at appropriate places
Tip 2: Mention only those projects which you have done in real

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 mins
Interview date8 Aug 2022
Coding problem2

In this round, i am given with 3 coding questions primarily on problem solving using DS Algo. The duration given is of 90 minutes. This round happened in CoCubes platform. Coming to the difficulty of the problems, first two questions are of “leetcode medium” difficulty, but the 3rd problem is of “leetcode hard” difficulty (Easier ones of “leetcode hard”). I managed to solve 2 questions completely and in the 3rd question some testcases ended up at time limit exceeded.
The topics are on:
1. Dynamic programming
2. Linkedlist
3. Graph

1. Add One to Linked List

Easy
10m average time
90% success
0/40
Asked in companies
UberSamsung R&D InstitutePayPal

Ninja has been given a number that is represented in the form of a linked list such that each digit corresponds to a node. He has been asked to add 1 to it and return the updated list.

For Example:

1234 is represented as (1 -> 2 -> 3 -> 4) and adding 1 to it should change it to (1 -> 2 -> 3 -> 5).

Note:

The input Linked list does not have any trailing zeros.
Problem approach

Its an adhoc problem

Try solving now

2. Rotting Oranges

Moderate
20m average time
78% success
0/80
Asked in companies
Samsung R&D InstituteSalesforceSamsung

You have been given a grid containing some oranges. Each cell of this grid has one of the three integers values:

  • Value 0 - representing an empty cell.
  • Value 1 - representing a fresh orange.
  • Value 2 - representing a rotten orange.
  • Every second, any fresh orange that is adjacent(4-directionally) to a rotten orange becomes rotten.

    Your task is to find out the minimum time after which no cell has a fresh orange. If it's impossible to rot all the fresh oranges then print -1.

    Note:
    1. The grid has 0-based indexing.
    2. A rotten orange can affect the adjacent oranges 4 directionally i.e. Up, Down, Left, Right.
    
    Problem approach

    I tried it using Dijkstra, but still some testcases ended up with TLE.

    Try solving now
    02
    Round
    Hard
    Online Coding Interview
    Duration180 mins
    Interview date10 Sep 2022
    Coding problem1

    In this round, am given with 1 coding question. The duration given is of 3 hours. For this round the candidate need to join in one meeting through our mobile where one person from the samsung internal hiring committee will view for the entire duration of the exam. We should not carry book with us, rather we should take one or two A4 sheets to do rough work in case needed. Before starting the exam itself, the person joined in the meeting asked to show my entire room and my table. After he confirmed that no one is present in the room then we proceeded further. This coding test is named as “Samsung Advanced test”.

    The topic on which the problem given is “Binary search”. The difficulty can be categorized as “leetcode hard” (easier ones of leetcode hard).

    1. Search In Rotated Sorted Array

    Moderate
    30m average time
    65% success
    0/80
    Asked in companies
    InformaticaDelhiveryGoldman Sachs

    Aahad and Harshit always have fun by solving problems. Harshit took a sorted array consisting of distinct integers and rotated it clockwise by an unknown amount. For example, he took a sorted array = [1, 2, 3, 4, 5] and if he rotates it by 2, then the array becomes: [4, 5, 1, 2, 3].

    After rotating a sorted array, Aahad needs to answer Q queries asked by Harshit, each of them is described by one integer Q[i]. which Harshit wanted him to search in the array. For each query, if he found it, he had to shout the index of the number, otherwise, he had to shout -1.

    For each query, you have to complete the given method where 'key' denotes Q[i]. If the key exists in the array, return the index of the 'key', otherwise, return -1.

    Note:

    Can you solve each query in O(logN) ?
    
    Problem approach

    Binary search on answer.

    Try solving now
    03
    Round
    Hard
    Online Coding Interview
    Duration240 mins
    Interview date23 Oct 2022
    Coding problem1

    In this round, am given with 1 coding question. The duration given is of 4 hours. For this round as well the setup is same as previous round, where i need to join in meeting via mobile. This coding test is named as “Samsung Professional coding test”.

    The topic on which the problem given is “Recursion and Backtracking”. The difficulty can be categorized as “Leetcode Hard”(harder ones of leetcode hard)

    1. Rat In a Maze All Paths

    Moderate
    40m average time
    60% success
    0/80
    Asked in companies
    AckoExpedia GroupAdobe

    You are given a 'N' * 'N' maze with a rat placed at 'MAZE[0][0]'. Find and print all paths that rat can follow to reach its destination i.e. 'MAZE['N' - 1]['N' - 1]'. Rat can move in any direc­tion ( left, right, up and down).

    Value of every cell in the 'MAZE' can either be 0 or 1. Cells with value 0 are blocked means the rat can­not enter into those cells and those with value 1 are open.

    Problem approach

    Solved it step by step, by adding the necessary checks that are specified in the question

    Try solving now
    04
    Round
    Medium
    Face to Face
    Duration50 mins
    Interview date30 Oct 2022
    Coding problem3

    The interview started with introduction of interviewer followed by mine, later he asked about my projects (Not too deep, just on the details about it, what algos were used and my role in the project). Then he shifted to main part i.e DS algo part, where he asked one Algorithmic problem, for which i came up with one approach within 2 minutes (As its not too hard one). Then i explained that approach to him, for which he agreed but he asked to further optimize. After about 3 minutes i gave him the final optimized approach for which he satisfied to the fullest and asked me to code it (We are given freedom to choose whichever language we like). I coded it in C++. After that, he asked the 2nd question. This question is based on trie. The question is of “leetcode medium” difficulty. After about 4 minutes, i told my approach to him for which he is quite satisfied. But he didn’t asked me to code as it’s going to be lengthy. Rather he asked one follow up question, which can be categorized as “leetcode hard”. After struggling for about 3 minutes, i came up with another approach for which he agreed. Actually he is quite impressed with my DSA skills and said “i am satisfied with your DSA skills, very good”.

    Then he moved on to CS fundamentals, where he asked questions from Operating system, DBMS, CN, OOPS. For which i answered most of the questions except some from CN. I replied “i don’t have much idea on it, i’ll read about it later”. Then he said “no issues, its totally fine”. Then he asked whether i know anything about system design, for which obviously i said i don’t have any idea on that. Finally the interviewer said he is done from his side and asked whether i had any queries regarding anything. I asked a couple of questions about the work culture, kind of work which we get and all. Finally the interview ended on positive note.

    1. Min Jumps

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

    You live in a Ninja town which is in the form of a N * M grid. In this town, people travel from one place to another by jumping over the buildings which are present in each cell of the grid. It is Christmas eve, and Santa wants to give gifts and chocolates to the kids who live in the building which is present at the cell (N - 1, M - 1). Initially, Santa is present on cell (0, 0). Since Santa is in a hurry, help him find a path from starting point to the endpoint with the least amount of time.

    The Santa may go only from one building to any of its adjacent buildings which is present either to the right or to the bottom or bottom right cell i.e. if the current position is (x, y), he may go to (x + 1, y + 1) or (x + 1, y) or (x, y + 1) given that the new coordinates are in the grid. The time taken to reach from one building to another is equal to the absolute difference between the heights of buildings.

    Note:

    1. The heights of the buildings are positive.
    2. Santa starts from the cell (0, 0) and he has to reach the building (N - 1, M - 1).
    3. Santa cannot leave the grid at any point of time.
    
    Problem approach

    Can be solved using intutive thinking

    Try solving now

    2. Implement Trie

    Hard
    41m average time
    0/120
    Asked in companies
    UberAmazonWalmart

    Implement Trie Data Structure to support these operations:

    insert(word) - To insert a string "word" in Trie
    search(word) - To check if string "word" is present in Trie or not.
    startsWith(word) - To check if there is any string in the Trie that starts with the given prefix string "word".
    


    Three type of queries denote these operations:

    Type 1: To insert a string "word" in Trie.
    1 word
    
    Type 2: To check if the string "word" is present in Trie or not.
    2 word
    
    Type 3: To check if there is any string in the Trie that starts with the given prefix string "word".
    3 word
    


    Problem approach

    I solved it using trie and some adhoc checks

    Try solving now

    3. OS based problems

    Questions on Critical section, bankers algo

    05
    Round
    Easy
    HR Round
    Duration30 minutes
    Interview date31 Oct 2022
    Coding problem1

    The interview started with introduction. Then she asked some common HR questions. Then she asked about my internship experience and about my projects. Then she asked about my availability (Notice period), how soon can i join. Then she asked about my current compensation and expected compensation and noted it down. After some of my questions, she said that they’ll get back to me after some days.

    1. Basic HR Questions

    why do you want to join samsung?

    tell me one such situation where you feel like you’ve struggled a lot and achieved it.

    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 - 1
    3 rounds | 3 problems
    Interviewed by Samsung R&D Institute
    0 views
    0 comments
    0 upvotes
    company logo
    SDE - Intern
    2 rounds | 3 problems
    Interviewed by Samsung R&D Institute
    1092 views
    0 comments
    0 upvotes
    company logo
    Software Engineer
    4 rounds | 5 problems
    Interviewed by Samsung R&D Institute
    1174 views
    0 comments
    0 upvotes
    company logo
    Software Engineer
    3 rounds | 7 problems
    Interviewed by Samsung R&D Institute
    1033 views
    0 comments
    0 upvotes
    Companies with similar interview experiences
    company logo
    Software Engineer
    3 rounds | 7 problems
    Interviewed by Optum
    7977 views
    1 comments
    0 upvotes
    company logo
    Software Engineer
    5 rounds | 5 problems
    Interviewed by Microsoft
    10148 views
    1 comments
    0 upvotes
    company logo
    Software Engineer
    2 rounds | 4 problems
    Interviewed by Amazon
    4448 views
    1 comments
    0 upvotes