Tip 1 : Practice at least 250 Questions.
Tip 2 : Do at least 2 projects.
Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume.



A pair ('ARR[i]', 'ARR[j]') is said to be an inversion when:
1. 'ARR[i] > 'ARR[j]'
2. 'i' < 'j'
Where 'i' and 'j' denote the indices ranging from [0, 'N').
This problem is a classic problem known as inversion count. I solved this problem using a merge sort tree and got full points. If we apply brute force, we will get a time limit exceeded error, so we have to solve this in O(n log n) complexity.



This problem is known as Kadane's algorithm. I solved this one using a single for loop and passed all the test cases successfully.



Merge Sort Algorithm -
Merge sort is a Divide and Conquer based Algorithm. It divides the input array into two-parts, until the size of the input array is not ‘1’. In the return part, it will merge two sorted arrays a return a whole merged sorted array.

The above illustrates shows how merge sort works.
It is compulsory to use the ‘Merge Sort’ algorithm.
Step 1: I wrote the first merge sort algorithm, then I explained the worst-case complexity for it.
Step 2: The interviewer cross-questioned me about the divide and conquer approach.
Step 3: I gave the definition of the divide and conquer method.



• The reference to the head of the linked list is not given.
• The node to be deleted is not a tail node.
• The value of each node in the Linked List is unique.
• It is guaranteed that the node to be deleted is present in the linked list.

Step 1: I wrote all conditions for deletion in a linked list, first from the beginning of the linked list, then between nodes in the linked list, and finally deleting the last node of the linked list.
Step 2: The interviewer asked about the complexity for each of these cases, and I replied for all three.
Tip 1 : Do at least two major projects.
Tip 2 : Explain your role in your project what you have done in your project.
Tip 3 : Have good knowledge of the technologies and stacks that are used in the project.



DP problem

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