Tip 1: Try to strengthen your fundamentals in Java, OOP, DBMS, and DSA.
Tip 2: Solve at least 150–200 important standard DSA questions on Coding Ninjas.
Tip 3: If you have experience working on a real project, make sure to thoroughly prepare for questions related to it.
Tip 1: Present your resume in the best possible way by highlighting your technical skills, experience, projects, achievements, and certifications.
Tip 2: Try to align your resume with the job description, but avoid including false information that could get you caught later.
There were no specific timings. I was asked to complete it by March 7th, 07:31 PM IST. It was a virtual/online coding round.


Consider an array of size four. The elements of the array are { -4, 5, 6, 1}.
The value of K is 4.
The subarrays whose sum is divisible by 4 are as follows:
[ -4 ]
[-4, 5, 6, 1]
[ 5, 6, 1]
Hence, there are three subarrays whose sum is divisible by 4.


A string ‘B’ is a substring of a string ‘A’ if ‘B’ that can be obtained by deletion of, several characters(possibly none) from the start of ‘A’ and several characters(possibly none) from the end of ‘A’.
Can you try to solve this problem in O(N) time and O(1) space.
If ‘S’ = “ninninja”
Then, “ninnin” is the longest substring that contains at most two distinct characters. We will print the length of this substring which is equal to 6.
This round took place in the afternoon (04:00 PM – 04:45 PM).
The interviewer joined the meeting on time.
He was friendly and created a comfortable environment.



You may make as many transactions as you want but can not have more than one transaction at a time i.e, if you have the stock, you need to sell it first, and then only you can buy it again.
I followed the approach below to solve this problem:
Tip 1: Keep your DBMS fundamentals clear.
Tip 2: Practice SQL queries regularly.
Tip 1: Keep your Java fundamentals clear.
Tip 2: Practice output-based questions.


Input: ‘N’ = 5, ‘K’ = 4, ‘NUMS’ = [ 1, 2, 1, 0, 1 ]
Output: 4
There are two subarrays with sum = 4, [1, 2, 1] and [2, 1, 0, 1]. Hence the length of the longest subarray with sum = 4 is 4.
I explained the following solution to him:
It was an O(n²) solution, so he asked me for an optimized one, which I wasn't able to provide at that time.

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