Tip 1 : Revise theory also like DBMS relations, Normal forms
Tip 2 : Keep your compiler ready in your computer
Tip 3 : I think this company is easiest to crack than other companies because the question asked were easy if one have studied or even aware of them
Tip 1 : Mention projects related to computer science
Tip 2 : One page and your achievements should be clearly visible (working in college societies are not achievements)
Coding test + mcq test in both coding and aptitude...took 5 hrs



The idea is to find a suitable rearrangement of S1, S2, and S3 such that their Bitwise XOR value is maximized using Dynamic Programming. The subproblems can be stored in a dp[][][][] table where dp[i][o1][o2][o3] stores the maximum XOR value up to position N-1 starting from the index i, where o1 is, o2 and o3 are the number of 1s still remaining to be placed in strings S1, S2 and S3 respectively.
There can be four cases possible at any position i from 0 to (N – 1):
Assign 1s to all the three strings
Assign 1s to any two strings
Assign 1s to any one of the strings.
Assign 0s to all the strings.
From the above possible cases for each position, calculate the maximum Bitwise XOR obtainable from the four possibilities:
Follow the steps below to solve the problem:
Initialize a table dp[][][][] to store the number of ones in S1, S2 and S3 for the positions i from 0 to N-1.
The transition states is as follows:
dp[i][o1][o2][o3] = max(dp(assign 1s to all three strings), dp(assign 1s to any of the two strings), dp(assign 1s to any one string), dp(do not assign 1 to any string)) where,
i = current position
o1 = remaining ones to be placed in the string S1
o2 = remaining ones to be placed in the string S2
o3 = remaining ones to be placed in the string S3
Solve the subproblems for all cases using the above transition and print the maximum XOR value amongst them.



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?
Find second largest ,third largest salary in employee field.
Tip 1 : use nested query

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: