Tip 1: For a company like Samsung, you need to excel in competitive programming, as the online test is tough to crack.
Tip 2: Focus on coding during the final months of interview preparation.
Tip 3: Aim to have at least three flagship projects in at least two different domains.
Tip 1: Keep the resume clean with a good text-to-space ratio.
Tip 2: Avoid mentioning technologies you know little about, as it can backfire if the interviewer is knowledgeable in that technology.



1. 0-based indexing is used in the array.
2. We only care about the garden from 0 to 'N' only. So if i - 'ARR'['i'] < 0 or i + 'ARR'['i'] > 'N', you may ignore the exceeding area.
3. If some fountain covers the garden from position 'A' to position 'B', it means that the water from this fountain will spread to the whole line segment with endpoints 'A' and 'B'.



A pair ('ARR[i]', 'ARR[j]') is said to be an inversion when:
1. 'ARR[i] > 'ARR[j]'
2. 'i' < 'j'
Where 'i' and 'j' denote the indices ranging from [0, 'N').



Let arr = [-2, 0, 5, -1, 2]
and K = 4
We will output 10 as we replace -2 by 2, -1 by 1, 0 by 0, and 0 by 0.
We can apply the flip operation to the same element multiple times
The interview was scheduled for 10 am and conducted by an SDE 3 of the company, who had an excellent background in competitive coding. It started with me introducing myself. The interviewer then shared a Google Doc with two coding questions written on it. He asked me to go through the first question and explain my approach. After that, he requested me to code the solution. The same procedure was followed for the second question.



1) A subarray is a part of the array which is contiguous (i.e. elements in the original array occupy consecutive positions) and inherently maintains the order of elements. For example, the subarrays of the array {1, 2, 3} are {1}, {1, 2}, {1, 2, 3}, {2}, {2, 3}, and {3}.
2) Bitwise OR operation takes two numbers and performs OR operation on every bit of those two numbers. For example, consider two numbers 2 and 3 their bitwise OR will be 3. Because the binary representation of 2 is 10 and the binary representation of 3 is 11. And OR of 10 and 11 will be 11 which evaluates to 3.
3) The array may contain duplicate elements.



The given graph may have connected components.
The round was at 4 pm evening. This round was taken by one of the Vice President of the company. This made me anxious from the very beginning.
Tip 1: Avoid mentioning skills you don't know much about.
Tip 2: Be precise with your answers and avoid beating around the bush.
Tip 3: Focus on system design if you're targeting good product-based companies.

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?