Tip 1: Practice standard questions of DP, Recursion, and Array for online assessment.
Tip 2: Add at least one Java Springboot project to your resume.
Tip 1: Have some Java Springboot projects on your resume.
Tip 2: Mention coding platform profiles.
Timing was 2.00 PM.
1. The sizes will range from 1 to ‘N’ and will be integers.
2. The sum of the pieces cut should be equal to ‘N’.
3. Consider 1-based indexing.
Step 1: First, I try with a Recursive Solution. But, some test cases didn't pass.
Step 2: So, I thought a little bit more and reduced the Recursive Solution to the DP Solution.
Step 1: Sort the input array in increasing order.
Step 2: Separate even and odd numbers.
Step 3: Place even numbers at even indices and odd numbers at odd indices to get the final rearranged array.
Timing was 8.00 PM.
There are 2 jugs with a capacity of 4 liters and 5 liters respectively.
The objective is to pour precisely 7 liters of water into a bucket. How can it be accomplished?
The bucket can hold more than 7 liters, the jugs are opaque with no markings and you have an infinite water source
Tip 1: Read and Understand the question carefully.
Tip 2: If any doubt in question, directly ask the interviewer.
Tip 3: Get permission from the interviewer to use Pen & Paper to solve.
Tip 4: Do not lose hope, even not get the solution on the first try. Try again and discuss the solution with the Interviewer.
You have 10 boxes of balls (each ball weighing exactly 10 gm) with one box with defective balls (each one of the defective balls weighs 9 gm). The number of balls in each box is different and more than 10 balls. You are given an electronic weighing machine and only one chance at it. How will find out which box has the defective balls?
Tip 1: Read and Understand the question carefully.
Tip 2: If any doubt in question, directly ask the interviewer.
Tip 3: Get permission from the interviewer to use Pen & Paper to solve.
Tip 4: Do not lose hope, even not get the solution on the first try. Try again and discuss the solution with the Interviewer.
The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Can you solve this problem in O(N) time and O(1) space complexity?
Step 1: Use the 3-Pointer approach for the Iterative Solution.
Step 2: For the Recursive Solution, the function reverses the linked list by calling itself recursively and updating the next pointers accordingly until it reaches the end of the original list. Finally, it returns the new head of the reversed list.
Tip 1: Read Core Java thoroughly.
What is 'MultiCatch' Block / 'Multiple Catch' Block?
What is StreamAPI, and what are its functions? (Learn)
What happens when we hit any URL, eg. (www.google.com)?
Explain the whole backend process while we hit any URL using WebBrowser.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which array operation has O(n) worst-case time complexity?