Tip 1: Do at least two projects.
Tip 2: Focus on CS fundamentals.
Tip 1: Good projects.
Tip 2: Mention your DSA skills.
In a special case, the time complexity of inserting/deleting elements at the end of a dynamic array is __________.



You are allowed to break the items.
If 'N = 4' and 'W = 10'. The weights and values of items are weights = [6, 1, 5, 3] and values = [3, 6, 1, 4].
Then the best way to fill the knapsack is to choose items with weight 6, 1 and 3. The total value of knapsack = 3 + 6 + 4 = 13.00
There were 3 Coding Questions.



Simple DFS.



a) Duplicate elements may be present.
b) If no such element is present return -1.
Input: Given a sequence of five numbers 2, 4, 5, 6, 8.
Output: 6
Explanation:
In the given sequence of numbers, number 8 is the largest element, followed by number 6 which is the second-largest element. Hence we return number 6 which is the second-largest element in the sequence.
The approach is to traverse the array twice. In the first traversal, find the maximum element. In the second traversal, find the most significant element, excluding the previously found greatest.



Assuming, the linked list is 10 -> 20 -> 30 -> 40 -> 50 -> 60 -> NULL. X = 2 and Y = 5. On reversing the given linked list from position 2 to 5, we get 10 -> 50 -> 40 -> 30 -> 20 -> 60 -> NULL.

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