Tip 1 : Practice company wise questions
Tip 2 : Dry run code before running
Tip 1 : Mention projects in detail
Tip 2 : Link coding profiles



An array ‘B’ is a subarray of an array ‘A’ if ‘B’ that can be obtained by deletion of, several elements(possibly none) from the start of ‘A’ and several elements(possibly none) from the end of ‘A’.
Stored cumulative sum and found sum of each subarray using that. started with smaller subarrays to optimize.
Explained different approaches
Tip 1 : Be honest
Tip 2 : Be confident

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?