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

Intern

Samsung R&D Institute
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming, Networking and Operating System
Tip
Tip

Tip 1: You need a strong aptitude for knowledge as a first tip
Tip 2: Solve questions from previous coding questions
Tip 3: Make sure your resume includes at least two projects

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

Tip 1: Have at least 2 good projects mentioned in your resume with a link
Tip 2: Focus on skills, internships, projects, and experiences.
Tip 3: Make it simple, crisp, and one page

Interview rounds

01
Round
Medium
Online Coding Test
Duration70 minutes
Interview date1 Mar 2019
Coding problem3

This was online test in which three coding questions were there.

1. 3Sum

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

You are given an array/list ARR consisting of N integers. Your task is to find all the distinct triplets present in the array which adds up to a given number K.

An array is said to have a triplet {ARR[i], ARR[j], ARR[k]} with sum = 'K' if there exists three indices i, j and k such that i!=j, j!=k and i!=j and ARR[i] + ARR[j] + ARR[k] = 'K'.

Note:
1. You can return the list of values in any order. For example, if a valid triplet is {1, 2, -3}, then {2, -3, 1}, {-3, 2, 1} etc is also valid triplet. Also, the ordering of different triplets can be random i.e if there are more than one valid triplets, you can return them in any order.
2. The elements in the array need not be distinct.
3. If no such triplet is present in the array, then return an empty list, and the output printed for such a test case will be "-1".
Problem approach

int threeSumClosest(vector& nums, int target) {
int n=nums.size();
int mini=INT_MIN;
int maxi=INT_MAX;
sort(nums.begin(),nums.end());

for(int k=0;k int i=k+1,j=n-1;
while(i int temp=nums[k]+nums[i]+nums[j];
if(temp mini=max(mini,temp);
i++;
}
else{
maxi=min(maxi,temp);
j--;
}

}
}
if(mini==INT_MIN){
return maxi;
}
if(maxi==INT_MAX){
return mini;
}
if(maxi-target return maxi;
}
return mini;
}

Try solving now

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

C++ solution

class Solution {
public:
int jump(vector& nums) {
int pos=0;
int des=0;
int jmp=0;

for(int i=0;i des=max(des,i+nums[i]);

if(pos==i){
pos=des;
jmp++;
}
}
return jmp;
}
};

Try solving now

3. Implement strStr()

Moderate
25m average time
70% success
0/80
Asked in companies
IBMFacebookSamsung R&D Institute

You are given two strings A and B. Find the index of the first occurrence of A in B. If A is not present in B, then return -1.

For Example:
A = “bc”, B = “abcddbc”.
String “A” is present at index 1, and 5(0-based index), but we will return 1 as it is the first occurrence of “A” in string “B”.
Follow Up:
Can you solve this in linear time and space complexity?
Problem approach

C++ one line solution

class Solution {
public:
int strStr(string haystack, string needle) {
return haystack.find(needle);
}
};

Try solving now
02
Round
Medium
Video Call
Duration60 mins
Interview date4 Mar 2019
Coding problem1

This was a technical + HR Round, HR asked various behavioral questions during this interview.

Tell me about yourself
Tell me about the most challenging project
Tell me about the basic pillars of OOPs
what are acid properties
Am I ready to relocate to any location in India
ACID properties in DBMS
How will you handle conflict with your team member

1. Reverse Linked List

Moderate
15m average time
85% success
0/80
Asked in companies
WalmartHCL TechnologiesInfo Edge India (Naukri.com)

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

Time complexity O(n)

class Solution {
public ListNode reverseList(ListNode head) {
ListNode prev=null;
ListNode current=head;
ListNode next=null;
while(current!=null){
next=current.next;
current.next=prev;
prev=current;
current=next;
}
return prev;
}
}

Try solving now

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
4 rounds | 7 problems
Interviewed by Samsung R&D Institute
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Samsung R&D Institute
1417 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Samsung R&D Institute
1150 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Samsung R&D Institute
456 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Intern
2 rounds | 2 problems
Interviewed by Microsoft
1499 views
0 comments
0 upvotes
company logo
Intern
2 rounds | 2 problems
Interviewed by Adobe
1020 views
0 comments
0 upvotes
company logo
Intern
3 rounds | 4 problems
Interviewed by Oracle
1298 views
0 comments
0 upvotes