Tip 1: Go through the questions on coding platforms for coding.
Tip 2: Be patient and calm. This process is time and energy-consuming, but I am sure you can get through it.
Tip 1: Your projects should be related to the current emerging topics.
Tip 2: Be prepared with the areas of interest that you included in your resume.
Online test



The fastest horse is the one that takes the minimum time to finish the race.



Face to Face interview



If the given linked list is 1 -> 2 -> 3 -> 4 -> 5 -> NULL.
Then rearrange it into 1 -> 5 -> 2 -> 4 -> 3 -> NULL.



insert(word) - To insert a string "word" in Trie
search(word) - To check if string "word" is present in Trie or not.
startsWith(word) - To check if there is any string in the Trie that starts with the given prefix string "word".
Type 1: To insert a string "word" in Trie.
1 word
Type 2: To check if the string "word" is present in Trie or not.
2 word
Type 3: To check if there is any string in the Trie that starts with the given prefix string "word".
3 word



If the first linked list is 1 -> 2 -> 3 -> 4 -> 5 -> NULL and the second linked list is 4 -> 5 -> NULL.
The two numbers represented by these two lists are 12345 and 45, respectively. So, adding these two numbers gives 12390.
So, the linked list representation of this number is 1 -> 2 -> 3 -> 9 -> 0 -> NULL.
Following are the steps:
1) Calculate the sizes of the given two linked lists.
2) If the sizes are the same, then calculate the sum using recursion. Hold all nodes in the recursion call stack until the rightmost node, calculate the sum of the rightmost nodes, and forward the carry to the left side.
3) If the sizes are not the same, then follow the below steps:
....a) Calculate the difference in sizes of the two linked lists. Let the difference be 'diff'.
....b) Move 'diff' nodes ahead in the bigger linked list. Now use step 2 to calculate the sum of the smaller list and the right sub-list (of the same size) of the larger list. Also, store the carry of this sum.
....c) Calculate the sum of the carry (calculated in the previous step) with the remaining left sub-list of the larger list. Nodes of this sum are added at the beginning of the sum list obtained in the previous step.


Input: ‘N’= 25, ‘s’ =”Take u forward is Awesome”
Output: 10 11 4







If there are any duplicates in the given array we will count only one of them in the consecutive sequence.
For the given 'ARR' [9,5,4,9,10,10,6].
Output = 3
The longest consecutive sequence is [4,5,6].
Can you solve this in O(N) time and O(N) space complexity?
There are 4 persons - say A, B, C, and D. Each can hold either 6, 7, or 8 balls in hand. If one has 6 or 8, the person speaks the truth. Otherwise, if a person holds 7 balls, he/she lies. When asked about the total number of balls, the replies from A, B, C, and D are: A - 25, B - 26, C - 27, D - 28. Only one is telling the truth. Who is telling the truth? What is the actual number of balls?

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?