Tip 1 : Be confident in interviews. Try to showcase all your technical abilities in the problems asked.
Tip 2 : Try to explain your approach clearly to interviewer and then start coding.
Tip 3 : Should try to cover edge cases(at least talk about them) in your solution.
Tip 1 : Mention your best projects on your resume which you can explain in detail.
Tip 2 : Quantify your results, for examples reduced latency by x%.
There were some mcq's which were around tell correct output for this program.
// filename Test.java
class Test {
public static void main(String args[]) {
System.out.println(fun());
}
static int fun() {
static int x= 0;
return ++x;
}
}
Compilation Error
// filename Main.java
class Main {
public static void main(String args[]) {
System.out.println(fun());
}
int fun() {
return 20;
}
}
Compilation Error
First solved a small aptitude test. Interviewer was very polite and explain me coding problem. Asked me to solve a DP problem. Then asked me a problem on OOPS and this concluded the interview.



str = "ababc"
The longest palindromic substring of "ababc" is "aba", since "aba" is a palindrome and it is the longest substring of length 3 which is a palindrome.
There is another palindromic substring of length 3 is "bab". Since starting index of "aba" is less than "bab", so "aba" is the answer.
I used brute force approach. Calculated all substrings and check if each substring was palindrome or not
I could not solve it via DP.
A, B and C can do a piece of work in 20, 30 and 60 days respectively. In how many days can A do the work if he is assisted by B and C on every third day?
15 days

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