Tip 1 : Learn about core java thoroughly as you will be asked about all the topics.
Tip 2 : Practice some Pseudo Code Questions.
Tip 3 : You should know a little bit about technologies used in projects. Ex - Git, Gitlab, Maven, Spring
Tip 1 : Explain briefly about your projects/ past experiences
Tip 2 : Know about all the skills mentioned in resume
This round was a Online Assessment which had 4 Sections
1 - OOP's Core Java MCQs - 25 MCQ's (30 min)
2 - OOP's Core Java Coding - 1 Coding Question (35 min)
3 - DS & Algo - Medium - 1 Coding Question (35 min)
4 - DS & Algo - Hard - 1 Coding Question (50 min)



1 2 3
4 5 6
For the above 2*3 matrix , possible paths are (1 2 3 6) , (1 2 5 6) , (1 4 5 6).
You can return the paths in any order.
Construct an auxiliary size matrix S[][] in which each entry S[i][j] represents the size of the square sub-matrix with all 1s including M[i][j] where M[i][j] is the rightmost and bottom-most entry in sub-matrix.
M[][] is the given matrix.
1) Construct a sum matrix S[R][C] for the given M[R][C].
a) Copy first row and first columns as it is from M[][] to S[][]
b) For other entries, use following expressions to construct S[][]
If M[i][j] is 1 then
S[i][j] = min(S[i][j-1], S[i-1][j], S[i-1][j-1]) + 1
Else /*If M[i][j] is 0*/
S[i][j] = 0
2) Find the maximum entry in S[R][C]
3) Using the value and coordinates of maximum entry in S[i], print
sub-matrix of M[][]



String ‘P’ is lexicographically smaller than string ‘Q’, if :
1. There exists some index ‘i’ such that for all ‘j’ < ‘i’ , ‘P[j] = Q[j]’ and ‘P[i] < Q[i]’. E.g. “ninja” < “noder”.
2. If ‘P’ is a prefix of string ‘Q’, e.g. “code” < “coder”.
N = 4
A = [ “ab” , “abc” , “a” , “bp” ]
Explanation :
Only prefix of the string “a” is “a” which is present in array ‘A’. So, it is one of the possible strings.
Prefixes of the string “ab” are “a” and “ab” both of which are present in array ‘A’. So, it is one of the possible strings.
Prefixes of the string “bp” are “b” and “bp”. “b” is not present in array ‘A’. So, it cannot be a valid string.
Prefixes of the string “abc” are “a”,“ab” and “abc” all of which are present in array ‘A’. So, it is one of the possible strings.
We need to find the maximum length string, so “abc” is the required string.
call another function which takes a genes[i], length of genes[i], DNA Sequence (s) and length of DNA Sequence as parameter and returns true/false if it is a substring of the given string.
It was a group discussion round
If aliens came to earth, Which country would they go to and Why?
Tip 1 : Speak confidently
Tip 2 : Be patient while others are speaking
This was a Technical Interview Round in which the interviewer asked me everything about core java, git and maven.
He told me to explain everything about java like where to download, how to install and about each and every topics that I remember about java while I explaining about oops he asked a question about changing reference to data member which is final and private, then he asked me some questions about exceptions in which he gave me a piece of code and asked me the order of execution. then he gave me some coding questions



Here subset sum means sum of all elements of a subset of 'nums'. A subset of 'nums' is an array formed by removing some (possibly zero or all) elements of 'nums'.
Input: 'nums' = [1,2]
Output: 0 1 2 3
Explanation:
Following are the subset sums:
0 (by considering empty subset)
1
2
1+2 = 3
So, subset sum are [0,1,2,3].
calculate all possible subsets then count the no of subsets with sum 0.



1) The character ‘C’ is a lowercase English alphabet that is given as input.
2) For example, if the character is 'C' is "d" then, the alphabetical order starts with "d" will look like {d,e,f,....,y,z,a,b,c}.
3) Every string in the array consists of only lowercase English alphabets.
This was a HR Round. It was scheduled in the evening around 5pm. Interviewer was very friendly.
Tip 1 : Be confident
Tip 2 : Be honest
Tip 3 : Don't Hesitate

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