Tip 1 : Analyze the mock interview
Tip 2 : Make a list of questions asked for interview
Tip 1 : Give interviews to any person for practice point
Tip 2 : Fit in skills and qualities
- Morning time
- Environment was good.
- No other significant activity
- Interviewer was good



step1- In both above samples, it is easy to verify that all 3 conditions hold and there are no other triples satisfying the conditions.
step2- In the first test case, we have N=6, p=2. The 2 triples satisfying the conditions are . (4,4,4), (4,2,4)
x + y + z = N
0 < z ≤ y ≤ x
|x - y - z| > K






If the given array is [1,2,3] then the answer would be 2. One of the ways to make all the elements of the given array equal is by adding 1 to the array element with value 1 and subtracting 1 from the array element with value 3. So that final array would become [2,2,2].






In cases where the dividend is not perfectly divisible by the divisor, you are required to return the integer value of the quotient which is closer to zero.
For example - If the answer is '8.34', we return the integer part, i.e., '8'. Also, If the answer is '-2.67', we return the integer part, i.e., '-2'.
Assume we're dealing with a system that can only store integers in the 32-bit signed integer range: [2^31, 2^31-1]. If the quotient is higher than 2^31 - 1, return 2^31 - 1; if it is less than -2^31, return -2^31.
If the answer is ‘9.333’, then return ‘9’, or if the answer is ‘-8.123’, then return ‘-8’.
S1- Using short-circuiting in boolean expressions
S2- We can take advantage of short-circuiting in boolean expressions. We know that in boolean AND operation such as x && y, y is evaluated only if x is true.
S3- If x is false, then y is not evaluated because the whole expression would become false, which can be deduced without even evaluating y. Similarly, for boolean OR operation such as x || y, y is evaluated only if x is false. If x is true, then y is not evaluated. This is called short-circuiting in boolean expressions.
S4- We can apply this logic to solve a given problem. Consider the following code snippet:
((n & 1) && printf("odd")) || printf("even");
- Morning time
- Environment was good.
- No
- Interviewer was good
1- What is the biggest challenge you’ve faced in your current position?
2- How would your coworkers describe you?
3- What skills would you bring to the job?
4- How do you keep up with the latest industry trends?
5- Have you been a mentor or had a mentor?
Tip 1 : Practice by HR Questions on any of the website
Tip 2 : Give online interviews

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?