Tip 1 : Explanation of theoretical topics should be crisp, clear, sufficient, and up to mark.
Tip 2 : The logic of the Program should be optimized.
Tip 1 : Explain your project properly (What is your project, what is your role, what technology you have used).
Tip 2 : Don't insert any false or additional things that you don't know.




For loops should be as follows
for(int i=1; i<(n+(n-1)); i+2){
for(int j=1; j<+i; j+2){
sysout(j);
}
}



ARR = [5, 7], N = 2, M = 2
Perform the following two operations on ‘ARR’:
1. Divide the bag with 7 balls into 3 and 4. New ARR = [3, 4, 5].
2. Divide the bag with 5 balls into 1 and 4. New ARR = [1, 3, 4, 4].
The bag with the maximum number of balls has 4 balls. Hence, the minimum possible value of ‘X’ is 4. Return 4 as the answer.
1. You can perform any number of operations between [0, M], both included.
2. Avoid using the 'Modulo' operator as it can cause Time Limit Exceeded.
Interview of Coding and theoretical topics with DBMS

We are representing white money as positive integers and black money as negative integers.
Let‘s assume ‘HOUSES’ = [2, -2, -1, 2, -1]. In this example ‘HOUSES[0]’ and ‘HOUSES[3]’ ( 0-based indexing) contain white money while ‘HOUSES[1]’, ‘HOUSES[2]’ and ‘HOUSES[4]’ and (0-based indexing) contain black money.
Let‘s assume ‘HOUSES’ = [2, -2, -1, 2, -1]. If we want to transfer all black money from ‘HOUSE[1]’ to ‘HOUSE[3], then the cost of transferring the money is (abs(1 - 3) * (2)) => 4.
The sum of the amount of black money in all houses is exactly equal to the sum of the amount of white money in all houses.
Go through DBMS Concepts

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?