Tip 1 : Clear your basics and fundamentals of core subjects other than Data Structures and OOPS. Be consistent and take time to revise what you've learnt.
Tip 2 : Do not skip aptitude, logical and verbal reasoning.
Tip 3 : Try to implement what you are learning. Interviewers love to discuss the hands-on skills you've gained while developing/working on projects.
Tip 1 : Mention only those skills on the resume, whom you've worked with and have a stronghold on so that your resume might not look fake. Mention your extra co-curricular achievements as well.
Tip 2 : Have a project on your resume on which you have contributed actively
The test is not time bound, you can choose the time at which you want to appear for the test within a given time frame. The Mettl environment was easy and simple to use and navigate.



You are given ‘ARR’ = [5, 2, 3]
In the first step, you can change 5 to 3, so the new array is [3, 2,3].
In the second step, you can change the 3 to 2, then the array is [2, 2,3].
In the third step, you can change the 3 to 2, then the array is [2, 2, 2]
Hence the answer is 3.
Note that any cell (i, j) can be reached in i+j-2 steps. Thus, only the pair (i, j) is required with i * j = N which minimizes i + j. It can be found by finding all the possible pairs (i, j) and checking them in 0(√N). To do this, without loss of generality, it can be assumed that i <= j and i <= √N. Since N = i * j >= i². So √N ≥ i² i.e. √N >= i.
Thus, iterate over all the possible values of i from 1 to √N and, among all the possible pairs (i, j), pick the lowest value of i + j - 2 and that is the required answer.




As taught in the video, you just have to modify the code so that instead of printing numbers, it should output stars ('*').
Each pattern program has two or more than two loops. The number of loops depends on the complexity of the pattern or logic. The first loop works for the row and the second loop works for the column. In pattern programs, Java for loop is widely used.
SQL query to find the second highest salary?
Tip 1: We can find nth salary using a general query like in MySQL:
SELECT salary
FROM employee
ORDER BY salary desc limit n-1,1
Tip 2: You can solve it by nesting the queries as well on this query [select *from employee where salary=(select Max(salary) from employee);]
Tip 3: Have Basic understanding of SQL queries of CRUD operations

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?