Tip 1 - Practice Atleast 250 Questions from coding ninjas
Tip 2 - Ex- Do atleast 2 good projects
Tip 1 : Have some good projects on resume.
Tip 2 : Do not put false things on resume and be confident.
The test was conducted on the Hackerrank platform. A total of 25 questions were asked (2 coding+21 MCQs). MCQs consist of java input/output, java oops, DBMS, etc


The simple idea of Kadane’s algorithm is to look for all positive contiguous segments of the array (max_ending_here is used for this). And keep track of the maximum sum contiguous segment among all positive segments (max_so_far is used for this). Each time we get a positive-sum compare it with max_so_far and update max_so_far if it is greater than max_so_far

Input: ‘N’ = 8, 'K' = ?, ‘STR’ = A12a3CbB
Output: A1?a?CbB
In this case, the numbers are ‘1’, ‘2’, and ‘3’ at ‘2nd’, ‘3rd’, and ‘5th’ positions respectively (1-based indexing). But only ‘2’ and ‘3’ are prime numbers, So after replacing them with ‘K’ the final string will be “A1?a?CbB”.
Iterate for every character in the string and perform the below steps for each character:
Add k to the ASCII value of character str[i].
If it exceeds 122, then perform a modulus operation of k with 26 to reduce the number of steps, as 26 is the maximum number of shifts that can be performed in a rotation.
To find the character, add k to 96. Hence, the character with ASCII value k+96 will be a new character.
1 coding question was asked and a few DBMS related question were asked like indexing, type of indexing, etc
They also asked me to solve 1 simple SQL query.
5 students were selected after this round.



ARR = [0, 1, 1, 0, 0, 1, 1, 1], here you can see the maximum length of consecutive 1’s is 3. Hence the answer is 3.
A simple solution is consider every subarray and count 1’s in every subarray. Finally return return size of largest subarray with all 1’s
They gave me OS (mutex) related questions. The question was properly framed, and I was told to write the pseudo-code for the given problem
mutex locking
A Mutex is a lock that we set before using a shared resource and release after using it.
Be confident and relax
Do not put any false thing in your resume(like the project, experience, etc)
Try having an engaging interaction with the interviewer.
Write very clean code(with proper variable name and comments)

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