Tip 1 : Practice on Leetcode, InterviewBit
Tip 2 : Practice more on Arrays,Trees,Linked Lists, DP
Tip 3 : Dont fake in resume
Tip 1: Don't fake in resume
Tip 2: Short and Precise
Online Tests with 3 easy/medium questions on DSA
You can use any string of A multiple times.
A =[“coding”, ”ninjas”, “is”, “awesome”] target = “codingninjas”
Ans = true as we use “coding” and “ninjas” to form “codingninjas”
Brute force approach.
Let the array 'ARR' be [1, 2, 3] and 'B' = 5. Then all possible valid combinations are-
(1, 1, 1, 1, 1)
(1, 1, 1, 2)
(1, 1, 3)
(1, 2, 2)
(2, 3)
Question on Recursion/back tracking.
Combination Sum problem
Input: ‘str1’ = “abcjklp” , ‘str2’ = “acjkp”.
Output: 3
Explanation: The longest common substring between ‘str1’ and ‘str2’ is “cjk”, of length 3.
Problem on Dynamic Programming.
Longest Common Substring variation.
2 questions on DSA + LLD Design Problem
1. The heights of the buildings are positive.
2. Santa starts from the cell (0, 0) and he has to reach the building (N - 1, M - 1).
3. Santa cannot leave the grid at any point of time.
2 DSA Question + DBMS + Resume
• The left subtree of a node contains only nodes with data less than the node’s data.
• The right subtree of a node contains only nodes with data greater than the node’s data.
• Both the left and right subtrees must also be binary search trees.
Level 1:
All the nodes in the left subtree of 4 (2, 1, 3) are smaller
than 4, all the nodes in the right subtree of the 4 (5) are
larger than 4.
Level 2 :
For node 2:
All the nodes in the left subtree of 2 (1) are smaller than
2, all the nodes in the right subtree of the 2 (3) are larger than 2.
For node 5:
The left and right subtrees for node 5 are empty.
Level 3:
For node 1:
The left and right subtrees for node 1 are empty.
For node 3:
The left and right subtrees for node 3 are empty.
Because all the nodes follow the property of a binary search tree, the above tree is a binary search tree.
Check Binary Search Tree
You do not need to print anything, just return the head of the reversed linked list.
Reverse a Linked List in O(n)
Detailed Discussion on Resume + Profile.
What are your hobbies?
Who is your favourite actor?
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which collection class forbids duplicates?