Tip 1 : Practice DS and ALGO
Tip 2 : Practice pointers
Tip 3 : Practice oops
Tip 1 : Focus on DS & algo
Tip 2 : Do not put a false resume



Let the array = [ 4, 2, 1, 5, 3 ]
Let pivot to be the rightmost number.

Applied quick sort



Here, sorted paths mean that the expected output should be in alphabetical order.
Given a square matrix of size 4*4 (i.e. here 'N' = 4):
1 0 0 0
1 1 0 0
1 1 0 0
0 1 1 1
Expected Output:
DDRDRR DRDDRR
i.e. Path-1: DDRDRR and Path-2: DRDDRR
The rat can reach the destination at (3, 3) from (0, 0) by two paths, i.e. DRDDRR and DDRDRR when printed in sorted order, we get DDRDRR DRDDRR.
Used DP



For the given binary tree:

The Inorder traversal will be [5, 3, 2, 1, 7, 4, 6].

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