i
Indiamart
Intermesh
Filter interviews by
Stacks are used in real life for managing undo operations in text editors, backtracking in maze solving, and managing function calls in programming.
Undo operations in text editors - allows users to go back to previous states of a document
Backtracking in maze solving - helps in keeping track of visited paths and backtracking when necessary
Managing function calls in programming - helps in keeping track of function c...
i++ and ++i are both increment operators in C++ but have different behaviors.
i++ is a post-increment operator which increments the value of i after using it in an expression.
++i is a pre-increment operator which increments the value of i before using it in an expression.
Example: int i = 5; int a = i++; // a = 5, i = 6; int b = ++i; // b = 7, i = 7;
The fundamental pillars of OOPS programming are encapsulation, inheritance, and polymorphism.
Encapsulation: It is the process of hiding the internal details of an object and providing a public interface for interacting with it.
Inheritance: It allows creating new classes by inheriting properties and behaviors from existing classes, promoting code reuse.
Polymorphism: It enables objects of different classes to be tre...
Java is platform independent because it uses the concept of bytecode and virtual machine.
Java code is compiled into bytecode, which is a platform-independent representation of the code.
The bytecode is then executed by the Java Virtual Machine (JVM), which is specific to each platform.
This allows Java programs to run on any platform that has a compatible JVM.
The JVM acts as an interpreter, translating the bytecode ...
A SQL query to count the number of rows in a table.
Use the COUNT() function in SQL to count the number of rows in a table.
Specify the table name in the FROM clause.
Use the result of the COUNT() function to print the number of rows.
Sort a list of custom class objects based on one of its properties.
Use a sorting algorithm like bubble sort, insertion sort, or merge sort.
Implement a comparison function to compare the desired property of the objects.
Apply the sorting algorithm to the list of objects using the comparison function.
Exception handling is a mechanism to handle runtime errors and prevent program crashes.
Exception handling is used to catch and handle errors that occur during program execution.
It involves the use of try-catch blocks to catch exceptions and handle them gracefully.
The try block contains the code that might throw an exception, and the catch block handles the exception.
Multiple catch blocks can be used to handle diff...
The various types of inheritance in Object-Oriented Programming include single inheritance, multiple inheritance, multilevel inheritance, hierarchical inheritance, and hybrid inheritance.
Single inheritance: A class inherits from only one base class.
Multiple inheritance: A class inherits from more than one base class.
Multilevel inheritance: A class inherits from a class, which in turn inherits from another class.
Hi...
ACID properties in DBMS ensure data integrity and consistency.
Atomicity: All transactions are either completed in full or not at all.
Consistency: Data must be in a valid state before and after a transaction.
Isolation: Transactions should be isolated from each other until they are completed.
Durability: Once a transaction is committed, changes are permanent and cannot be lost.
Example: If a bank transfer fails midway...
You are provided with an array/list ARR
of size 'N', containing integers ranging from 0 to N - 1. Some elements in this array might be repeating. Your task is ...
Identify duplicate elements in an array of integers ranging from 0 to N-1.
Iterate through the array and keep track of seen elements using a hash set.
If an element is already in the set, it is a duplicate and can be added to the result.
Return the list of duplicate elements found in the array.
I applied via Referral and was interviewed in Jul 2023. There were 4 interview rounds.
Aptitude Question on various standard topics .
Stacks are used in real life for managing undo operations in text editors, backtracking in maze solving, and managing function calls in programming.
Undo operations in text editors - allows users to go back to previous states of a document
Backtracking in maze solving - helps in keeping track of visited paths and backtracking when necessary
Managing function calls in programming - helps in keeping track of function calls ...
i++ and ++i are both increment operators in C++ but have different behaviors.
i++ is a post-increment operator which increments the value of i after using it in an expression.
++i is a pre-increment operator which increments the value of i before using it in an expression.
Example: int i = 5; int a = i++; // a = 5, i = 6; int b = ++i; // b = 7, i = 7;
I appeared for an interview in Sep 2021.
Round duration - 90 minutes
Round difficulty - Medium
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
Given an integer N, determine and print all the prime numbers between 2 and N, inclusive.
Integer N
Prime numbers printed on separate lines
Generate and print all prime numbers between 2 and N, inclusive.
Iterate from 2 to N and check if each number is prime
A prime number is only divisible by 1 and itself
Print each prime number on a new line
Given an input string STR
, generate and print all possible permutations of the string.
str
All permutations of the input string, each on a new line.
Generate and print all possible permutations of a given input string.
Use recursion to generate all permutations by swapping characters in the string.
Maintain a visited array to keep track of characters already used in a particular permutation.
Print each permutation as it is generated.
Handle duplicate characters by skipping swapping if the character is already in the current position.
Round duration - 75 minutes
Round difficulty - Medium
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.
Given an array of integers ARR
of length N
and an integer Target
, your task is to return all pairs of elements such that they add up to the Target
.
The first line ...
Given an array of integers and a target, find all pairs of elements that add up to the target.
Iterate through the array and for each element, check if the difference between the target and the element exists in a hashmap.
If it exists, add the pair to the result. If not, add the element to the hashmap.
Handle cases where the same element is used twice in a pair.
Return the pairs found or (-1, -1) if no pair is found.
Design a queue data structure following the FIFO (First In First Out) principle using only stack instances.
Your task is to complete predefined functions t...
Implement a queue using stacks with enQueue, deQueue, peek, and isEmpty operations.
Use two stacks to simulate a queue - one for enqueueing and one for dequeueing.
For enQueue operation, push elements onto the enqueue stack.
For deQueue operation, if the dequeue stack is empty, transfer elements from enqueue stack to dequeue stack.
For peek operation, return the top element of the dequeue stack.
For isEmpty operation, check...
Given an array ARR
of size N
, perform the operation to swap the Kth element from the beginning with the Kth element from the end of the array.
N = 5, K = 2
...
Swap Kth elements in an array with given constraints.
Create a temporary variable to store the Kth element from the start
Swap the Kth element from the start with the Kth element from the end
Return the modified array
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
I applied via Campus Placement and was interviewed before May 2021. There were 4 interview rounds.
An online test was taken on Aspiring Minds platform. The test duration was of 1 hour and test consists of questions related to aptitude, english and coding.
Java is platform independent because it uses the concept of bytecode and virtual machine.
Java code is compiled into bytecode, which is a platform-independent representation of the code.
The bytecode is then executed by the Java Virtual Machine (JVM), which is specific to each platform.
This allows Java programs to run on any platform that has a compatible JVM.
The JVM acts as an interpreter, translating the bytecode into ...
Exception handling is a mechanism to handle runtime errors and prevent program crashes.
Exception handling is used to catch and handle errors that occur during program execution.
It involves the use of try-catch blocks to catch exceptions and handle them gracefully.
The try block contains the code that might throw an exception, and the catch block handles the exception.
Multiple catch blocks can be used to handle different...
Sort a list of custom class objects based on one of its properties.
Use a sorting algorithm like bubble sort, insertion sort, or merge sort.
Implement a comparison function to compare the desired property of the objects.
Apply the sorting algorithm to the list of objects using the comparison function.
A SQL query to count the number of rows in a table.
Use the COUNT() function in SQL to count the number of rows in a table.
Specify the table name in the FROM clause.
Use the result of the COUNT() function to print the number of rows.
The fundamental pillars of OOPS programming are encapsulation, inheritance, and polymorphism.
Encapsulation: It is the process of hiding the internal details of an object and providing a public interface for interacting with it.
Inheritance: It allows creating new classes by inheriting properties and behaviors from existing classes, promoting code reuse.
Polymorphism: It enables objects of different classes to be treated ...
I appeared for an interview in Jul 2021.
Round duration - 60 minutes
Round difficulty - Medium
This round had questions related to aptitude and coding
You are provided with an array/list ARR
of size 'N', containing integers ranging from 0 to N - 1. Some elements in this array might be repeating. Your task is...
Identify duplicate elements in an array of integers ranging from 0 to N-1.
Iterate through the array and keep track of seen elements using a hash set.
If an element is already in the set, it is a duplicate and can be added to the result.
Return the list of duplicate elements found in the array.
Round duration - 60 minutes
Round difficulty - Medium
This round had some questions from OOPS and some from DBMS
Compile-time polymorphism is achieved through function overloading and operator overloading, while runtime polymorphism is achieved through virtual functions and inheritance.
Compile-time polymorphism is resolved during compile-time based on the number and types of arguments passed to a function.
Examples of compile-time polymorphism include function overloading, where multiple functions with the same name but different ...
ACID properties in DBMS ensure data integrity and consistency.
Atomicity: All transactions are either completed in full or not at all.
Consistency: Data must be in a valid state before and after a transaction.
Isolation: Transactions should be isolated from each other until they are completed.
Durability: Once a transaction is committed, changes are permanent and cannot be lost.
Example: If a bank transfer fails midway, the...
The various types of inheritance in Object-Oriented Programming include single inheritance, multiple inheritance, multilevel inheritance, hierarchical inheritance, and hybrid inheritance.
Single inheritance: A class inherits from only one base class.
Multiple inheritance: A class inherits from more than one base class.
Multilevel inheritance: A class inherits from a class, which in turn inherits from another class.
Hierarc...
Round duration - 30 minutes
Round difficulty - Easy
This was my last round and I hoped it to go good just like the other rounds. The interviewer was very straight to the point and professional. The interview lasted for 30 minutes.
Tip 1 : Prepare for DSA
Tip 2 : Good communication skills and confidence
Tip 3 : Proper knowledge of computer-related subjects
Tip 1 : Just mention your area of interest in your resume
Tip 2 : Mention only those things which you have a proper knowledge. Also mention about the final year project
I applied via Campus Placement and was interviewed before Feb 2021. There were 2 interview rounds.
Top trending discussions
I appeared for an interview before Jan 2021.
Round duration - 60 minutes
Round difficulty - Easy
Two coding questions were given in the first round to be solved in 60 minutes.
Given an array A
containing 'N' integers and an integer m
, rearrange the elements of the array such that the differences between the array elements and m
are sor...
Rearrange array elements based on their differences from a given integer.
Calculate the differences between each element and the given integer.
Sort the elements based on their differences while maintaining the original order for elements with the same difference.
Implement a function to rearrange the array elements as per the given criteria.
Given an arbitrary binary tree, a node of the tree, and an integer 'K', find all nodes that are at a distance K from the specified node, and return a list of th...
The task is to find all nodes in a binary tree that are at a distance K from a given node.
Traverse the binary tree to find the given node
From the given node, perform a depth-first search to find all nodes at distance K
Use a list to store the values of the nodes at distance K
Return the list of values in any order
Round duration - 60 minutes
Round difficulty - Easy
This was a technical round with questions based on DSA, DBMS, Computer Networking and project based questions.
Ninja is tasked with printing a triangle pattern based on a given number 'N' for any test case.
N = 4
1
232
34545
4567654
The pat...
Print a triangle pattern of numbers based on a given number 'N'.
Iterate through each row and print the numbers accordingly
Use spaces to center-align the numbers in each row
Increment the numbers in each row as per the pattern
Web server serves static content over HTTP, while application server runs dynamic content and business logic.
Web server handles HTTP requests and responses, serving static content like HTML, images, and CSS.
Application server executes business logic, runs dynamic content, and interacts with databases.
Web server examples include Apache, Nginx, while application server examples include Tomcat, JBoss.
Web server focuses on...
The internet is a global network of interconnected computers that communicate using standardized protocols.
The internet is made up of a vast number of interconnected networks of computers.
Data is transmitted over the internet using protocols such as TCP/IP.
Websites are hosted on servers connected to the internet, and users access them using web browsers.
Internet Service Providers (ISPs) provide access to the internet f...
SQL query to find the nth highest salary
Use the 'SELECT DISTINCT' statement to get unique salary values
Order the salaries in descending order using 'ORDER BY' clause
Use 'LIMIT' and 'OFFSET' to get the nth highest salary
Round duration - 30 minutes
Round difficulty - Easy
Typical HR round with behavioral problems.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I appeared for an interview before Dec 2020.
Round duration - 60 Minutes
Round difficulty - Medium
This round was purely based on Data Structures and Algorithms . One has to be fairly comfortable in solving Algorithmic problems to pass this round . Both the questions asked were quite common and luckily I had already prepared them from CodeStudio and LeetCode.
Given a Binary Tree with 'N' nodes, where each node holds an integer value, your task is to compute the In-Order, Pre-Order, and Post-Order traversals of the binar...
Compute the In-Order, Pre-Order, and Post-Order traversals of a Binary Tree given in level-order format.
Implement functions to perform In-Order, Pre-Order, and Post-Order traversals of a Binary Tree.
Use level-order input to construct the Binary Tree.
Traverse the Binary Tree recursively to generate the required traversals.
Ensure proper handling of null nodes represented by -1 in the input.
Return the three traversals as ...
Given a Singly Linked List of integers, your task is to reverse the Linked List by altering the links between the nodes.
The first line of input is an intege...
Reverse a singly linked list by altering the links between nodes.
Iterate through the linked list and reverse the links between nodes
Use three pointers to keep track of the current, previous, and next nodes
Update the links between nodes to reverse the list
Return the head of the reversed linked list
Round duration - 45 Minutes
Round difficulty - Medium
This round basically tested some concepts from Data Structures and File Manipulation .
Given two arrays A
and B
with sizes N
and M
respectively, both sorted in non-decreasing order, determine their intersection.
The intersection of two arrays in...
The problem involves finding the intersection of two sorted arrays efficiently.
Use two pointers to iterate through both arrays simultaneously.
Compare elements at the pointers and move the pointers accordingly.
Handle cases where elements are equal and update the intersection array.
Return the intersection array as the result.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
posted on 30 Nov 2015
I applied via Campus Placement
I applied via Referral
Design optimal data structures for LRU cache
Use a doubly linked list to keep track of recently used items
Use a hash table to store key-value pairs for quick access
When an item is accessed, move it to the front of the linked list
When the cache is full, remove the least recently used item from the back of the linked list and hash table
Convert a sorted array to balanced binary search tree
Find the middle element of the array and make it the root of the tree
Recursively construct the left subtree using the left half of the array
Recursively construct the right subtree using the right half of the array
Repeat until all elements are added to the tree
Reverse a singly linked list in groups of k inplace
Divide the linked list into groups of k nodes
Reverse each group of k nodes
Connect the reversed groups to form the final linked list
A recursive routine to calculate a ^ n
The base case is when n is 0, in which case the result is 1
For any other value of n, the result is a multiplied by the result of a^(n-1)
The recursive function should call itself with a^(n-1) as the new input
Design optimal data structure for never-ending stream of numbers for insertion, deletion, searching, kth largest and kth smallest.
Use a balanced binary search tree like AVL or Red-Black tree for efficient insertion, deletion, and searching.
Maintain two heaps, one for kth largest and one for kth smallest.
For finding kth largest, use a min heap of size k and for kth smallest, use a max heap of size k.
Alternatively, use a...
Some of the top questions asked at the Indiamart Intermesh Associate Software Engineer interview -
based on 1 interview experience
Difficulty level
Duration
based on 13 reviews
Rating in categories
Assistant Manager
2.6k
salaries
| ₹2.5 L/yr - ₹9.3 L/yr |
Senior Executive
1.2k
salaries
| ₹2 L/yr - ₹5.8 L/yr |
Manager
926
salaries
| ₹3.4 L/yr - ₹10 L/yr |
Sales Executive
742
salaries
| ₹1 L/yr - ₹5.6 L/yr |
Relationship Manager
662
salaries
| ₹3.6 L/yr - ₹9.6 L/yr |
Amazon
Flipkart
Udaan
BigBasket