Filter interviews by
Be the first one to contribute and help others!
I applied via LinkedIn and was interviewed before Sep 2020. There was 1 interview round.
I appeared for an interview in Aug 2017.
Merge Sort is a divide and conquer algorithm that sorts an array by dividing it into two halves, sorting them separately, and then merging the sorted halves.
Divide the array into two halves
Recursively sort the two halves
Merge the sorted halves
Find pairs of integers in a BST whose sum is equal to a given number.
Traverse the BST and store the values in a hash set.
For each node, check if (X - node.value) exists in the hash set.
If yes, add the pair (node.value, X - node.value) to the result.
Continue traversal until all nodes are processed.
Merge overlapping time intervals into mutually exclusive intervals.
Sort the intervals based on their start time.
Iterate through the intervals and merge overlapping intervals.
Output the mutually exclusive intervals.
Example: [(1,3), (2,6), (8,10), (15,18)] -> [(1,6), (8,10), (15,18)]
Different types of hashing and alternative for Linear Chaining
Different types of hashing include division, multiplication, and universal hashing
Alternative for Linear Chaining is Open Addressing
Open Addressing includes Linear Probing, Quadratic Probing, and Double Hashing
An AVL tree is a self-balancing binary search tree where the heights of the left and right subtrees differ by at most one.
AVL tree is a binary search tree with additional balance factor for each node.
The balance factor is the difference between the heights of the left and right subtrees.
Insertion and deletion operations in AVL tree maintain the balance factor to ensure the tree remains balanced.
Rotations are performed ...
Find the minimum number of squares whose sum equals to a given number n.
Use dynamic programming to solve the problem efficiently.
Start with finding the square root of n and check if it is a perfect square.
If not, then try to find the minimum number of squares required for the remaining number.
Repeat the process until the remaining number becomes 0.
Return the minimum number of squares required for the given number n.
Insertion sort for a singly linked list.
Traverse the list and compare each node with the previous nodes
If the current node is smaller, swap it with the previous node
Repeat until the end of the list is reached
Time complexity is O(n^2)
Version control is essential for managing code changes and collaborating with team members.
Version control allows for tracking changes made to code over time.
It enables collaboration between team members by allowing multiple people to work on the same codebase simultaneously.
It provides a way to revert to previous versions of code if necessary.
Popular version control systems include Git, SVN, and Mercurial.
JVM stands for Java Virtual Machine. It is an abstract machine that enables a computer to run Java programs.
JVM is responsible for interpreting the compiled Java code and executing it on the computer.
It provides a platform-independent environment for Java programs to run on different operating systems.
JVM has various components like class loader, bytecode verifier, and execution engine.
Examples of JVM-based languages i
Byte code is a compiled code that can be executed on any platform with the help of a virtual machine.
Byte code is an intermediate code that is generated by a compiler.
It is platform-independent and can be executed on any platform with the help of a virtual machine.
Examples of virtual machines include Java Virtual Machine (JVM) and .NET Common Language Runtime (CLR).
I applied via Campus Placement and was interviewed before Nov 2020. There were 3 interview rounds.
DBMS stands for Database Management System. It is a software system that allows users to define, create, maintain and control access to databases.
DBMS is used to manage large amounts of data efficiently.
It provides a way to store, retrieve and manipulate data in a structured manner.
It ensures data integrity and security by providing access control and backup and recovery mechanisms.
Examples of DBMS include MySQL, Oracl
There are various types of databases such as relational, NoSQL, graph, and document-oriented databases.
Relational databases store data in tables with predefined relationships between them.
NoSQL databases are non-relational and can handle unstructured data.
Graph databases store data in nodes and edges, and are useful for complex relationships.
Document-oriented databases store data in documents, similar to JSON objects.
E...
I applied via Campus Placement and was interviewed in Jun 2020. There were 3 interview rounds.
Quantum Computing - the latest technology from the field of computer science.
Quantum computing uses quantum bits (qubits) instead of classical bits for faster computation.
It has the potential to solve complex problems that classical computers cannot.
Companies like IBM, Google, and Microsoft are investing heavily in quantum computing research.
Quantum computing is still in its early stages and has a long way to go before
TCS
Accenture
Wipro
Cognizant