Tip 1: Consistency
Tip 2: Dedication
Tip 3: Hard work
Tip 1: Work on projects that address social causes.
Tip 2: Maintain a balance between software development and data structures and algorithms (DSA) proficiency.
MCQ - 30 mins
MCQ - 30 mins
The coding round consists of two coding questions.



In the below map of Ninjaland let say you want to go from S=1 to T=8, the shortest path is (1, 3, 8). You can also go from S=1 to T=8 via (1, 2, 5, 8) or (1, 4, 6, 7, 8) but these paths are not shortest.

Find the MST.
Identify the shortest edge not included in the MST.
Remove the longest edge from the MST.
Find the shortest path between the endpoints of the removed edge.
Combine the shortest path with the removed edge to get the second shortest path.



Given an array of integers, find the length of the longest increasing subsequence using dynamic programming.
Problem Definition: Given an array of integers, we aim to find the length of the longest increasing subsequence.
Dynamic Programming State: Define a dynamic programming state, dp[i], where dp[i] represents the length of the longest increasing subsequence ending at index i.
Recurrence Relation: Iterate over all indices j before i and check if nums[i] > nums[j]. If it is, extend the longest increasing subsequence ending at index j by including nums[i]. Update dp[i] as max(dp[j] + 1, dp[i]).
Base Case: Initialize the dp array with all elements set to 1, as the minimum length of any subsequence is 1.
Build DP Table: Iterate over the array and compute the dp array using the recurrence relation defined in step 3.
Find Maximum Length: Once the dp array is built, the length of the longest increasing subsequence will be the maximum value in the dp array.
Return Result: Return the maximum value found in the dp array, which represents the length of the longest increasing subsequence.
My interview round focused on assessing my proficiency in data structures, emphasizing problem-solving skills with arrays, linked lists, trees, and graphs. It challenged my algorithmic thinking and ability to optimize solutions.



find if the linked list is circular or not.
Tip 1: Give the brute force approach
Tip 2: Solve all the corner cases
Tip 3: Optimised the solution

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