Tip 1 : You should have strong command on DSA basics and theoretical topics.
Tip 2 : You should be well aware of the projects and their tech stack that you are putting on your resume along with the challenges you faced while developing them.
Tip 3 : For DSA, you should practice mostly easy-medium and medium level problems for online assessment and for second interview.
Tip 1 : Put at least 2 projects
Tip 2 : Put some info about your coding profiles and some info about your extra curricular activities.
Timing: Test was conducted at 10 AM in the morning.
Test was online on Codility platform.
User activity was monitored, camera was on.



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').
1. The idea is similar to merge sort, divide the array into two equal or almost equal halves in each step until the base case is reached.
2. Create a function merge that counts the number of inversions when two halves of the array are merged, create two indices i and j, i is the index for the first half, and j is an index of the second half. if a[i] is greater than a[j], then there are (mid – i) inversions. because left and right subarrays are sorted, so all the remaining elements in left-subarray (a[i+1], a[i+2] … a[mid]) will be greater than a[j].
3. Create a recursive function to divide the array into halves and find the answer by summing the number of inversions is the first half, the number of inversion in the second half and the number of inversions by merging the two.
4. The base case of recursion is when there is only one element in the given half.



An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase. We can generalize this in string processing by saying that an anagram of a string is another string with the same quantity of each character in it, in any order.
{ “abc”, “ged”, “dge”, “bac” }
In the above example the array should be divided into 2 groups. The first group consists of { “abc”, “bac” } and the second group consists of { “ged”, “dge” }.
This problem was new for me but I solved it in my first attempt.
1. Created a map of string and vector of string.
2. Traversing through the array of strings and setting the sorted string as key of the map and adding the original string into the corresponding vector.
3. While traversing the map extracted the vector of strings into a vector of vector of string and returned it as the answer.
Interview was held online on zoom around 1PM
Interviewer was very nice and he introduced himself first and then asked me to give a brief intro about myself.
He started with some theory questions based on OS and networking and in the end gave me 1 DS question to solve.
OS: What is deadlock, semaphores?
Networking: What is network topology and what are its different types ?
Tip 1 : Revise your theory notes that you made during your college.
Tip 2 : Check out some online materials related to interview questions, this will help in last minute revision.
Tip 3 : Make sure basic concepts of OS, DBMS, Networking are clear to you and you have one subject very well prepared for the interview.
Interviewer will ask your favorite subject.



1. Constructor:
It initializes the data members(queues) as required.
2. push(data) :
This function should take one argument of type integer. It pushes the element into the stack and returns nothing.
3. pop() :
It pops the element from the top of the stack and, in turn, returns the element being popped or deleted. In case the stack is empty, it returns -1.
4. top :
It returns the element being kept at the top of the stack. In case the stack is empty, it returns -1.
5. size() :
It returns the size of the stack at any given instance of time.
6. isEmpty() :
It returns a boolean value indicating whether the stack is empty or not.
Query-1(Denoted by an integer 1): Pushes an integer data to the stack. (push function)
Query-2(Denoted by an integer 2): Pops the data kept at the top of the stack and returns it to the caller. (pop function)
Query-3(Denoted by an integer 3): Fetches and returns the data being kept at the top of the stack but doesn't remove it, unlike the pop function. (top function)
Query-4(Denoted by an integer 4): Returns the current size of the stack. (size function)
Query-5(Denoted by an integer 5): Returns a boolean value denoting whether the stack is empty or not. (isEmpty function)
Operations:
1 5
1 10
2
3
4
Enqueue operation 1 5: We insert 5 at the back of the queue.
Queue: [5]
Enqueue operation 1 10: We insert 10 at the back of the queue.
Queue: [5, 10]
Dequeue operation 2: We remove the element from the front of the queue, which is 5, and print it.
Output: 5
Queue: [10]
Peek operation 3: We return the element present at the front of the queue, which is 10, without removing it.
Output: 10
Queue: [10]
IsEmpty operation 4: We check if the queue is empty.
Output: False
Queue: [10]
This is very standard problem based on stack and queue.
Implemented 2 methods pop() and push() by creating 2 queues q1 and q2.
Push()
Enqueue x to q2
One by one dequeue everything from q1 and enqueue to q2.
Swap the names of q1 and q2
Pop()
Dequeue an item from q1 and return it.
Interview was held online on zoom around 10AM
Interviewer was very nice and he introduced himself first and then asked me to give a brief intro about myself.
He started with LLD question asked me to design tic tac toe game and in the end asked some follow up questions on OOP and on my project.
Design the Tic Tac Toe game using best coding practices.
Tip 1 : The level of problem was easy-medium, so you need to prepare these level of problems in any OOP language of your choice.
Tip 2 : Make sure you are well aware of OOPs concepts.
Tip 3 : Also go through your projects and their tech stack thoroughly.
Interview was in the morning at 10 AM
Interviewer was very nice.
Where do you see yourself in 5 years?
How was your college journey and how you have managed your academics in Covid lockdown?
Experience in extra curricular activities, any plans of higher education.
Tip 1 : This interview was easy, just be confident about your answers.
Tip 2 : Questions were very basic, giving good answers will be enough to clear this round.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is the result of len([1, 2, 3, 4])?