Tip 1 : Practice different varieties of good questions of Data Structures and Algorithms.
Tip 2 : Prepare Core Subjects like OS and DBMS thoroughly.
Tip 3 : Prepare concepts like Exception Handling, Garbage Collector, Multithreading etc in the programming language like Java thoroughly.
Tip 1 : Must include your coding profiles in your resume.
Tip 2 : Make your resume of 1 page and not include much fancy colors and designs.
The test was conducted on Hackerrank. The Code Editor was really good. Test was conducted in the evening. You need to solve atleast 3-4 questions out of 6 to clear the round.



Step 1 : According to the constraints given, brute solution would have definitely given TLE.
Step 2 : Then I did the solution in which we swaps and reverses some part of the string according to the logic.
Step 3 : All test cases were passed.


Step 1 : Firstly I did the solution using PriorityQueue. But it gave TLE.
Only Data Structures Problems were asked during this round.



The same word in the dictionary can be used multiple times to make sentences.
Assume that the dictionary does not contain duplicate words.
Step 1 : Gave the solution using Recursion and Backtracking.



Step 1 : I firstly told the brute solution of sorting the array each time element is added.
Step 2 : Interviewer asked me to optimise the solution.
Step 3 : Then I gave solution using PriorityQueue and interviewer was happy.
Firstly Interviewer told a game for which we have to write a class. Then Interviewer asked different concepts of Java like Exception Handling, Garbage Collector.
1. final vs finalize vs finally
2. Types of Memory in Java
3. For which cases and why does OutOfMemoryException occur in Java.
4. For which Java Memory, does this exception occur.
5. Exception Handling (asked many cases like)
eg : Does code in the finally block run or not ?
int fun() {
try {
return 5;
}
finally {
System.out.println("abc");
}
}
6. Garbage Collection (asked in deep, when and how does garbage collector work)
7. If we have a HashMap, and we want to share it among different web servers, how can we do that?
Tip 1 : Prepare different Concepts of the programming language thoroughly.
Interview was completely based on OS and Multithreading in Java.
1. Process vs Thread
2. When and why do we need Synchronization?
3 .Different ways to achieve Synchronization.
4. What is Multithreading and its example.
5. Mutex vs Semaphore
6. Different types of Semaphores
7. What are Monitors
Tip 1 : Prepare OS Concepts thoroughly.
1. Different types of locks in Java
2. Like we use synchronized keyword in Java, which lock does it use internally.
3. wait vs notify in Java.
4, Different ways to create a thread in Java.
5. Coding Problem on Threads in Java -
Write a program in which one thread is printing odd values 1,3,5…
and another thread is printing even values 2,4,6…
But we should get the output 1,2,3,4,5,...
Tip 1 : Do not ignore the concepts like Multithreading in Java.

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