Tip 1 : Do not only read, practice!
Tip 2 : Take notes of your mistakes
Tip 3 : give at least 1 hour every day
Tip 1 : Do not make spelling mistakes.
Tip 2 : Do not add false experiences and skills.
MCQs-Aptitude + Quantitative
In a coding round, 2 questions came.



Input: ‘arr’ = [1, 1, 2] and ‘k’ = 2
Output: 2
Explanation: If we want to make two subarrays, there are two possibilities: [[1], [1, 2]] and [[1, 1], [2]]. We can see that the maximum sum of any subarray is minimized in the second case. Hence, the answer is 2, which is the maximum sum of any subarray in [[1, 1], [2]].
The first line contains the number of test cases, T = 1.
The first test case
Given
N = 4
A = [4, 3, 2, 3]
K = 2
Approach
Check all the possible partitions of the array and take the one which gives the maximum profit
Possible partitions are as follows [- (4) + (3 + 2 + 3), - (4 + 3) + (2 + 3), - (4 + 3 + 2) + (3)]
The profits of these possible partitions are as follows [8 - 4, 5 - 7, 3 - 9] = [4, -2, -6] hence the answer is 4.



Let S = “abdd” and X = “bd”.
The windows in S which contain all the characters in X are: 'abdd', 'abd', 'bdd', 'bd'.
Out of these, the smallest substring in S which contains all the characters present in X is 'bd'.
All the other substring have a length larger than 'bd'.
Basic Hr Questions were asked. I was also asked about some questions from DS algo + from my projects. I was also asked questions from DBMS



1) Here length of the path refers to the number of edges in that path.
2) You can start and stop at any node.
3) You can visit any node 0 or more times.
4) You can use any given edge 0 or more times.





Two islands are considered to be the same if and only if one island is equal to another(not rotated or reflected) i.e if we can translate one island on another without rotating or reflecting then it would be considered as the same islands.
1 1 0
0 0 1
0 0 1
In this example, we have two islands and they would be considered as distinct islands as we can not translate them on one another even if they have the same no of 1's.
1 1 0 0 0
1 1 0 0 0
0 0 0 1 1
0 0 0 1 1
In this example, we have two islands and they are the same as we can translate one island onto another island, so our answer should be 1.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
To make an AI less repetitive in a long paragraph, you should increase: