Tip 1: Practice 5 problems daily from coding platforms.
Tip 2: Participate in contests regularly.
Tip 3: Attend mock interviews and ensure you have good communication skills.
Tip 1: Maintain at least 2 different projects and write powerful summary statements for each.
Tip 2: Maintain skills relevant to the job description and include relevant experience on your resume.






An array c is a subarray of array d if c can be obtained from d by deletion of several elements from the beginning and several elements from the end.
For e.g.- The non-empty subarrays of an array [1,2,3] will be- [1],[2],[3],[1,2],[2,3],[1,2,3].
If arr = {-3,4,5}.
All the possible non-empty contiguous subarrays of “arr” are {-3}, {4}, {5}, {-3,4}, {4,5} and {-3,4,5}.
The product of these subarrays are -3, 4, 5, -12, 20 and -60 respectively.
The maximum product is 20. Hence, the answer is 20.
Can you solve this in linear time and constant space complexity?



The Number of elements smaller than 4 on its right side is 2.
The Number of elements smaller than 2 on its right side is 1.
The Number of elements smaller than 1 on its right side is 0.
The Number of elements smaller than 5 on its right side is 0.
Hence the count array is [2,1,0,0]



Given ‘K’ will always be valid.

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