Tip 1 : Start with the basics if you have lost touch with competitive coding. Don't directly jump to interview questions.
Tip 2 : Create a timetable and set goals. Keep aside 3-4 hours for studying. Consistency is the key.
Tip 3 : Focus on medium and hard questions. Solving a lot of easy questions doesn't help.
Tip 1 : Have some projects on your resume.
Tip 2 : Do not put the wrong things on your resume.




Can you solve the problem in O(N) time?
The gardener wants to water the garden by opening the minimum number of taps. The garden is one-dimensional along the x-axis of length N i.e. the garden starts from point 0 and ends at point N. There are N + 1 tap located at points [0, 1, 2, …, N] in the garden.
You are given an integer N, and an array named “ranges” of size N + 1(0-indexed). The ith tap, if opened, can water the gardener from point (i - ranges[i]) to (i + ranges[i]) including both. The task is to find the minimum number of taps that should be open to water the whole garden, return -1 if the garden can not be watered.



L1 = 1->2->3->4->7
L2 = 2->4->6->7
ANSWER:- The answer should be 2->4->7 because 2,4, and 7 are present in both the linked lists.
You are given two Singly Linked List of integers, which are merging at some node of a third linked list.
Your task is to find the data of the node at which merging starts. If there is no merging, return -1.



In the given linked list, there is a cycle, hence we return true.

You have given a Singly Linked List of integers, determine if it forms a cycle or not.
A cycle occurs when a node's next points back to a previous node in the list. The linked list is no longer linear with a beginning and end—instead, it cycles through a loop of nodes.
Note: Since, it is binary problem, there is no partial marking. Marks will only be awarded if you get all the test cases correct.
Write a SQL query: Employee and department table is given you need to find the salary of employees in each department
Which databases have you used?
Difference between SQL and NoSQL?
What is the CAP theorem?
Tip 1 : Practice writing SQL queries
Tip 2 : Make a note of all DBMS imp concepts and most common interview questions
Tip 3 : Before the interview, go through last moment notes om GFG



Nodes are numbered from 0 to N - 1.
The graph given is connected.
Print the vertices in sorted order.
The following is an example of DAG i.e a directed graph with no cycles in it.

Given a directed acyclic graph having ‘N’ nodes. A matrix ‘edges’ of size M x 2 is given which represents the ‘M’ edges such that there is an edge directed from node edges[i][0] to node edges[i][1].

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