Tip 1 : Data structures and algorithms are the most fundamental and important thing to prepare.
Tip 2 : Don't ignore OOPS.
Tip 3 : Solve DSA questions regularly.
Tip 1 : Avoid unnecessary details like hobbies, date of birth, parent's name, photo, etc., and keep it one-pager.
Tip 2 : Add a link to your GitHub, LinkedIn, website, phone number, etc.
Interview was conducted at zoom in the evening hours.
For example:
If the given array is {1, 5, 2, 3, 4}, the output will be 2 (which is GCD of 2 and 4, all other pairs have a GCD of 1)
Let’s assume, we have 5 buckets each having 10, 40, 30, and 20 fruits respectively. And, Kevin wants to eat at least 30 fruits.
Now, if we set our marker at 20 then Kevin can eat: (10 - 20) = -10 => 0 (fruit’s count can’t be negative) fruits from 1st bucket, (40 - 20) = 20 fruits from 2nd bucket, (30 - 20) = 10 fruits from the third bucket, and (20 - 20) = 0 fruits from the last bucket.
So, he can eat 0 + 20 + 10 + 0 = 30 fruits in total.
Each bucket may not have the same amount of fruits. It is guaranteed that the sum of all fruits (including all the buckets) will be greater than M. Kevin can only eat fruits from a particular bucket if and only if the bucket has more fruits than the marker.
This round was scheduled in the morning hours from 10:30 to 11 am. The interviewer was cool-minded and I really enjoyed talking to him.
What is expectation from this job?
What are your hobbies?
Some puzzles.
his puzzle usually seems like a tough one to answer, but solving it once makes one realize that the procedure was actually simple. If the candidate pulls out 2 red balls, he replaces them with a blue ball.
On the other hand, if he draws one red and one blue, it is replaced with a red one. This implies that the red ball would always be in odd numbers, whether the candidate removes 2 together, or removes 1 while adding 1. This also indicates that the last ball to stay in the bag would be a red one. The interviewer is merely testing the approach the candidate applies in solving this common analytics puzzle.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you write a single-line comment in C++?