Tip 1 : Make your Data Structures and Algorithms very strong
Tip 2 : They mostly ask from topics like arrays,linked list,Hash Maps, String
Tip 3 : Sometimes they ask easy and frequently asked DP ques
Tip 1 : You have knowledge of the things you write on resume
Tip 2 : It is not important to have projects but if you have written, you should have idea about it.
Timing:- It was on morning at around 9.
Everyone had to bring their own laptop.
Interviewers were very helpful. They gave hints during the interview. You should catch it and try to proceed in that direction



Consider if ‘N’ = 4, the Factorial of 4 will be the product of all numbers from 1 to 4, which is 1 * 2 * 3 * 4 = 24. Hence, the answer is 24.
Solving the problem is most important. It can be brute force solution.
I used for loop to solve the problem.



I used for loop to solve the problem.



1. Both STR and PTR consist of English uppercase letters.
2. Length of string 'STR' will always be greater than or equal to the length of string ‘PTR’.
3. In case, there is no anagram substring, then return an empty sequence.
4. In case of more than one anagrams, return the indices in increasing order.
I used for loop to solve the problem.
It was the same day as round 1 at around 12.



1. Every train will depart on the same day and the departure time will always be greater than the arrival time. For example, A train with arrival time 2240 and departure time 1930 is not possible.
2. Time will be given in 24H format and colons will be omitted for convenience. For example, 9:05AM will be given as "905", or 9:10PM will be given as "2110".
3. Also, there will be no leading zeroes in the given times. For example, 12:10AM will be given as “10” and not as “0010”.
Use Greedy approach to solve the problem



1. The integers x,y and z might not be distinct , but they should be present at different locations in the array i.e if a[i] = x, a[j] = y and a[k] = z, then i,j and k should be pairwise distinct.
2. The integers a,b and c can be present in any order in the given array.
Used the logic of pythagoras theorem, and hashmap
It was in afternoon at around 2 or 3. The interviewers were very helpful and calm.
Firstly the took my introduction then as I told them I like java so they asked some basic questions in java like who is the parent class of all the classes. Name some of the functions of that class .which package is imported by default. Name some functions included in it. Then they were going to ask about my project which included python and some machine learning concepts. I told that I know only the basics of python and ml ,I was not much comfortable in it. So they only asked about the name of model used in it.



The Linked Lists, where a1, a2, c1, c2, c3 is the first linked list and b1, b2, b3, c1, c2, c3 is the second linked list, merging at node c1.

Claculate the length of both the linked list, then find the difference of it and travel upto the difference in larger linked list. then start traversing both the linked list, you will get the intersection point.



You can’t sell without buying first.
For the given array [ 2, 100, 150, 120],
The maximum profit can be achieved by buying the stock at minute 0 when its price is Rs. 2 and selling it at minute 2 when its price is Rs. 150.
So, the output will be 148.
(It was a dp ques I tried but i was not able to crack it. I tried for some time and then they asked me if I wanted for the ques to be changed and I agreed.



Use two pointers approach
class temp{......
int sum(int a,int b){}
String sum(int a,int b){...}
}
class main{
Psvm(...){
Object of temp was made
Int ans=object.sum(5,6)
String s=object.sum(5,6)
}
}
Which function will go to which method? What is the name of this process(overriding)
See the class and think logically to solve
It was in the evening. The interviewers were very good.



1. Each of the digits 1 - 9 must occur exactly once in each row.
2. Each of the digits 1 - 9 must occur exactly once in each column.
3. Each of the digits 1 - 9 must occur exactly once in each of the 9, 3 x 3 sub-matrices of the matrix.
1. There will always be a cell in the matrix which is empty.
2. The given initial matrix will always be consistent according to the rules mentioned in the problem statement.



Let’s say you have an array/list ‘ARR = [1,1,2,2]’.
Then a valid rearrangement can be [1,2,1,2] or [2,1,2,1] such that no two adjacent elements are equal. [2,1,1,2] is an invalid arrangement because two adjacent elements are equal.
It was in the evening at around 6pm
It was normal asked about my hobbies and told about hashedin university.

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?