Tip 1: Initially, spend some time on DSA.
Tip 2: After that, start participating in contests on coding platforms.
Tip 3: Give mock interviews to boost your confidence.
Tip 1: You should have at least 2 good projects.
Tip 2: Try to include your coding profile link in your resume.
We were given 3 slots, and we had to choose which slot to give our coding round. It was for 1 hour.



Consider a rat placed at (0, 0) in a square matrix of order N * N. It has to reach the destination at (N - 1, N - 1). Find all possible paths that the rat can take to reach from source to destination. The directions in which the rat can move are 'U'(up), 'D'(down), 'L' (left), and 'R' (right). Value 0 at a cell in the matrix represents that it is blocked and the rat cannot move to it while value 1 at a cell in the matrix represents that the rat can travel through it. Note: In a path, no cell can be visited more than one time. If the source cell is 0, the rat cannot move to any other cell.
Step 1: I identified this as a backtracking problem.
Step 2: I applied backtracking to solve it.
Since I had already solved this problem before, it was easy for me.



Given an array, ‘Arr’ of length ‘n’, count the number of longest increasing subsequences (LIS).
Step 1: It was a dp problem and was a variation of LIS (longest increasing subsequence)
Step 2: It included making a dp array and filling it linearly as per the condition



For the trees given below:-

The given trees are identical as:-
1. The number of nodes in both trees is the same.
2. The number of edges in both trees is the same.
3. The data for root for both the trees is the same i.e 5.
4. The data of root -> left (root’s left child) for both the trees is the same i.e 2.
5. The data of root -> right (root’s right child) for both the trees is the same i.e 3.
6. The data of root -> right -> left ( left child of root’s right child) for both the trees is the same i.e 6.
7. Nodes with data 2 and 6 are the leaf nodes for both the binary trees.
This was a pretty simple question. Applying simple recursion worked here.
What is a foreign key? (Learn)
Tip 1: try to cover every topic in DBMS
My answer to this problem -
"Foreign keys link data in one table to the data in another table"



Can you solve each query in O(logN) ?
Step 1: Initially, I considered a brute force approach, but the interviewer specified a requirement for an O(log N) solution.
Step 2: I then thought of an approach using binary search.
The interviewer was satisfied with this solution.



• You can make ‘B’ from ‘S’ by removing some characters and rearranging some characters zero or more times.
• Length of ‘S’ must be as minimum as possible.
Testcases are generated such that a substring always exists and is unique.
A = ninjas, B = sin
All possible substrings with which 'B' can be created are
"ninjas", "injas".
Hence the substring with minimum length is "injas".
I misunderstood this question and solved it by thinking that we needed to find the minimum window subsequence and hence I was not able to solve it.

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