Do not rush into things. Learning takes time. Focus should be on the concepts and not just on leaving topics half-prepared. Devote 70% of both time and effort to DSA. I solved a total of around 500 questions on sites like GFG and Leetcode. Do not repeat similar questions just to increase the count of the number of questions
Tip 1 : Have some projects on your resume.
Tip 2 : Do not put false things on your resume.



The given graph may have connected components.



[1, 2, 3, 4] is a strictly increasing array, while [2, 1, 4, 3] is not.
Firstly I gave recursion approach but then the interviewer asked me to optimize that so I gave him a standard DP approach for the longest increasing subsequences by storing the result and use them for future calculations of bigger problem.



The given Linked Lists are merging at node c1.
In this case, c1 is 'MERGING POINT'.

At first I gave the interviewer a complete brute force by considering each element of the first list and comparing it with each element of another list but that was inefficient. So I gave the interviewer optimal approach by finding difference of lengths of linked list and then traverse bigger linked list to difference. Now start traversing both linked lists till we find the common element. This solution impressed the interviewer.



V is the number of vertices present in graph G and vertices are numbered from 0 to V-1.
E is the number of edges present in graph G.
The Graph may not be connected i.e there may exist multiple components in a graph.
Implement DFS algorithm for the graph.

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