Tip 1 : Learn new topics and revised that topic .
Tip 2 : one question is always in the mind to think
Tip 3 : Do a project
Tip 1 : Technology you know, projects
Tip 2 : No false information in your resume
It was in the evening. Platform used for this round was hackerrank. Questions were of moderate level.
Input: 'arr' = [1, 2, 7, -4, 3, 2, -10, 9, 1]
Output: 11
Explanation: The subarray yielding the maximum sum is [1, 2, 7, -4, 3, 2].
It was in the evening. I have practiced coding questions a lot so my thinking abilities got improved. Questions were of moderate level.
Given:
‘N’ = 6, ‘C’ = 23
‘A’[] = {5, 19, 13, 2, 4, 0}
‘B’[] = {10, 4, 7, 4, 5, 14}
The max-length subarray will be 2, consider the subarray from 3 to 4 (0-based indexing) and here, the subarray sum of ‘A’ = 6 max element in ‘B’ = 5. Therefore 6*2 + 5 = 17, Which is less than 23. Hence 2 is the final answer.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which is a DDL command in SQL?