Tip 1 : Mainly focus on understanding the problem statement and the purpose of doing your project.
Tip 2 : DSA training will be given by Samsung to clear the online round. Solve all the model questions given.
Tip 3 : If you have good manager feedback, you just need to clear the coding round. You will not have any interviews.
Tip 1: Only write things that you are confident about
Tip 2: Resume must be in a single page pdf format
It is an online coding round having 1 question only. The time given is 3 hours and there are 50 test cases. The intern must pass all 50 cases to move to the next round. I am adding 3 questions that I got to know. The next round of interview will happen only if the manager's feedback is bad. Else PPO will be offered directly on passing this round.
Three attempts will be given to every intern to clear this coding round in a span of two months. I failed on the first attempt on June 16. I passed the test during my second attempt on 23 June.


Input is given such that the answer will fit in a 32-bit integer.
Input: 'k' = 3, 'arr' = [1, 20, 13, 4, 4, 1]
Output: 80
Explanation:
We can divide the array into the following subarrays
[1,20] max of this subarray is 20 so the contribution of
this subarray in the final answer will be 20*2=40.
[13,4,4] max of this subarray is 13 so the contribution of
this subarray in the final answer will be 13*3=39.
[1] max of this subarray is 1 so the contribution of this
subarray in the final answer will be 1*1=1.
So, the answer will be 40 + 39 + 1 = 80.
Use dynamic Programming. This is just a variation of the MCM problem and can be understood just by building a recursion tree as we generally do for MCM-type problems. It is a standard problem, just we need to identify the pattern.



The idea is to maintain a maxHeap of size k. A number is to be evicted from this heap if the k-sized window moves past it.
-> If that number to be evicted is at the top, immediately pop the heap.
-> if not, then maintain a toDelete heap which will evict the number as soon as it reaches top in both. Keep discarding numbers from both these heaps until the tops don't match.



Suppose ‘A’ = “brute”, and ‘B’ = “groot”
The shortest supersequence will be “bgruoote”. As shown below, it contains both ‘A’ and ‘B’ as subsequences.
A A A A A
b g r u o o t e
B B B B B
It can be proved that the length of supersequence for this input cannot be less than 8. So the output will be bgruoote.
For every string s we pre-calculate the length of the longest possible overlap between s and any other strings.
Then for every possible subset A'of A, we could use the sum of the precalculated lengths as an upper bound to the total overlaps that can be obtained by combining all the strings in A'.
Using this upper bound, we could give up early on many branches.

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?