Tip 1: Prepare your resume well.
Tip 2: Deploy your projects so that the interviewer can view them. Also, provide a hyperlink in your resume.
Tip 3: Be thorough with Data Structures and Algorithms. Also, prepare well on topics such as OS and DBMS.
Tip 1: Deploy your projects so that the interviewer can view them. Also, provide a hyperlink on your resume.
Tip 2: It's not important to have fancy projects. Only mention those on which you're confident.



In the below histogram where array/list elements are {2, 1, 5, 6, 2, 3}.
The area of largest rectangle possible in the given histogram is 10.
Tip 1 : I used a DP approach



'ARR[]' = [1, 2]
The size of the array is 2. So, the total number of permutations is 2! = 2. The possible permutations are [1, 2] (the array itself) and [2,1] where the position of element 1 in the original array is swapped with element 2 and vice-versa.
1. All the numbers in the array are unique.
2. You can return the answer in any order.
3. The original array is also a permutation of the given array.
A permutation is a mathematical technique that determines the number of possible arrangements in a set when the order of the arrangements matters. A string of length 'N' has 'N'! permutations.



If the given list is (1 -> -2 -> 0 -> 4) and N=2:

Then the 2nd node from the end is 0.
Iter over list, if n = 1, return element past head, otherwise, iterate untill nth element, remove it and return head of list.



Input:
3
3
4 6 8
3
2 5 7
2
1 9
Output:
1 2 4 5 6 7 8 9
Explanation:
First list is: 4 -> 6 -> 8 -> NULL
Second list is: 2 -> 5 -> 7 -> NULL
Third list is: 1 -> 9 -> NULL
The final list would be: 1 -> 2 -> 4 -> 5 -> 6 -> 7 -> 8 -> 9 -> NULL
Create a priority queue of the heads of linked lists. While there are elements in the priority queue, remove the smallest head and add it to another list. Increase the head. If there are more elements in that list, add the head back to the priority queue.
You are given a multicore server and a distributed queue. You need to fetch elements from the queue and store them into the database.
A solution was suggested of running a master thread, which checks the queue and allocates more threads for processing entries.
Tip 1: Ask more questions about the problem.
Tip 2: No solution is the best; starting with a simple approach is okay.
Tip 3: Clearly communicate your thinking.

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?