Tip 1: Mention some good projects on your resume.
Tip 2: Be confident and believe in yourself.
Tip 3: Be proficient with computer science basics and DS and Algo.
Tip 1: Good Projects.
Tip 2: Having some achievements is a plus point.






Can you solve each query in O(logN) ?
The idea is that when rotating the array, there must be one half of the array that is still in sorted order.






'ARR' = [3, 4, -1, 1, 5] and 'K' = 3
Output = [4, 4, 5]
Since the maximum element of the first subarray of length three ([3, 4, -1]) is 4, the maximum element of the second subarray of length three ([4, -1, 1]) is also 4 and the maximum element of the last subarray of length three ([-1, 1, 5]) is 5, so you need to return [4, 4, 5].
It was a standard problem so I know the exact solution, you can simply use dequeue + two pointers to solve this questions.



A Sudoku solution must satisfy all the following conditions-
1. Each of the digits 1-9 must occur exactly once in each row.
2. Each of the digits 1-9 must occur exactly once in each column.
3. Each of the digits 1-9 must occur exactly once in each of the 9, 3x3 sub-grids of the grid.
You can also assume that there will be only one sudoku solution for the given matrix.
The idea is simple try every number from 1-9 on every single empty block and check the row, column and 3x3 grid if the number already exists, if yes don't continue and try with a different number and if no try with the next empty block.



A substring is a contiguous segment of a string.
I solve it by using DP in O(n^2) time complexity.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is the best case time complexity of Bubble Sort?