Tip 1 : Focus on solving good quality DSA problems rather than quantity
Tip 2 : Study computer science fundamental subjects like OOPS, DBMS and Operating systems thoroughly
Tip 1 : Mention at least 1 good development project
Tip 2 : Don't put unnecessary or non technical details in your resume
It was an MCQ + coding based round consisting of multiple choice questions from topics like Aptitude, Logical reasoning, English, Programming ,etc. and 2 coding problems



You can solve this problem using brute force or sieve of eratosthenes. I solved it using sieve of eratosthenes



The input string may contain the same characters, so there will also be the same permutations.
The order of permutations doesn’t matter.
I solved this problem by using Recursion + backtracking
There were 2 interviewers. Firstly, they asked me to give my introduction. Then they asked me to explain any one of my projects in detail along with its demonstration. After this, they began with the DSA and computer fundamentals part.



We cannot use the element at a given index twice.
Try to do this problem in O(N) time complexity.
I solved this problem using hashmap



1. To implement means you need to complete some predefined functions, which are supported by a normal queue such that it can efficiently handle the given input queries which are defined below.
2. The implemented queue must support the following operations of a normal queue:
a. enQueue(data) : This function should take one argument of type integer and place the integer to the back of the queue.
b. deQueue(): This function should remove an integer from the front of the queue and also return that integer. If the queue is empty, it should return -1.
c. peek(): This function returns the element present in the front of the queue. If the queue is empty, it should return -1.
d. isEmpty(): This function should return true if the queue is empty and false otherwise.
3. You will be given q queries of 4 types:
a. 1 val - For this type of query, you need to insert the integer val to the back of the queue.
b. 2 - For this type of query, you need to remove the element from the front of the queue, and also return it.
c. 3 - For this type of query, you need to return the element present at the front of the queue(No need to remove it from the queue).
d. 4 - For this type of query, you need to return true if the queue is empty and false otherwise.
4. For every query of type:
a. 1, you do not need to return anything.
b. 2, return the integer being deQueued from the queue.
c. 3, return the integer present in the front of the queue.
d. 4, return “true” if the queue is empty, “false” otherwise.
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]
You can solve this problem by making either of enQueue or deQueue operation costly. I solved it by making the enQueue operation costly.


If ‘N’ = 5 and K = 2
[1, 2, 3, 4, 5]
Then the output will be [1, 4, 3, 2, 5].
Step 1: Find the kth node from the start and the kth node from the end (n-k+1th node from start)
Step 2: Swap both the nodes
The Employee table holds all employees including their managers. Every employee has an Id, and there is also a column for the manager Id as shown below:
+----+-------+--------+-----------+
| Id | Name | Salary | ManagerId |
+----+-------+--------+-----------+
| 1 | Joe | 70000 | 3 |
| 2 | Henry | 80000 | 4 |
| 3 | Sam | 60000 | NULL |
| 4 | Max | 90000 | NULL |
+----+-------+--------+-----------+
Given the Employee table, write a SQL query that finds out employees who earn more than their managers. For the above table, Joe is the only employee who earns more than his manager.
1. Explain ACID properties.
2. What is the difference between Delete and truncate command?
3. What is Indexing and which data structure is used in it?
1. What is a Deadlock and what are the conditions for a deadlock to occur?
2. What is virtual memory and paging?
It was a very easy round. The HR asked me the following questions:
1. Tell me about yourself.
2. What are your strengths and weaknesses?
3. Why do you want to join IndiaMART?
4. Where do you see yourself after 5 years?

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