Tip 1 : Practice at least 300 Questions(containing standard question of DSA from all topics).
Tip 2 : Number of projects doesn't matter much.
Tip 3 : You should be able to explain your main project deeply.
Tip 1 : You should have atleast one good project.
Tip 2 : You should be able to explain clearly.
9:00 am
Many people come to give test.
You will be provided some snacks.


Operation 1: He can divide any even element by 2
For example: [1, 2, 3, 4, 5] -> [1, 1, 3, 2, 5]
Operation 2: He can multiple any odd element by 2:
For example: [1, 2, 3, 4, 5] -> [2, 2, 6, 4, 5]
Step 1: First we need to sort the given array.So that the diffence of adjacent elements will be minimum.
Step 2: We will apply divide and conquer method .We will initialize starting and ending value first and we will take its mid value and check the whether it is satisfying the condition or not accordingly we will change the range.
Step 3: We will return the minimum mid value satisfying the condition(i.e, giving p pairs)
9:00 am
Interviewer was very calm and supportive.



If the given rectangle is [1, 1, 3, 2]. It means the bottom left corner is at [1, 1] and the top right corner is at [3, 2]. Hence, the top left corner is at [1, 2] and the bottom right corner is at [3, 1].

Two integers are used to represent Point - x and y coordinates.
Two points are used to represent a Rectangle - Bottom left corner and top right corner.
To make a perfect rectangle we have to mainly focus on corners of the rectangles.
So, if the total net count of corner is 4, it means it is a perfect square.
Using hashing we can keep track of corner count.Below is the solution i have mentioned.
bool isRectangleCover(vector>& rect) {
map , int> m;
for(auto x:rect){
m[{x[0],x[1]}]++;
m[{x[2],x[1]}]--;
m[{x[2],x[3]}]++;
m[{x[0],x[3]}]--;
}
int cnt=0;
for(auto x:m){
if(abs(x.second)==1)cnt++;
else if(abs(x.second)!=1 && abs(x.second)!=0)
return false;
}
return cnt==4;
}
They asked me about previous company projects that i have done.
I have worked on EIR5g (based on 5g network)
Tip 1 : I explained them about EIR5g and also explain the architecture of this application and it's working..
Tip 2 : And also tell them what technology we have used.
9:00 am
This round is very easy.
Interviewer was very polite.
Why you want to join Samsung?
Tell me about your self?
What's your family background?
Tip 1:You have to give some generic answer.
Tip 2:Answer these questions confidently.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?