Filter interviews by
RDBMS is a relational database management system that uses structured data, while NoSQL is a non-relational database that uses unstructured data.
RDBMS stores data in tables with predefined schemas, while NoSQL stores data in various formats like key-value, document, columnar, or graph.
RDBMS supports ACID (Atomicity, Consistency, Isolation, Durability) properties, while NoSQL sacrifices some of these properties for...
An immutable class in Java is a class whose state cannot be modified after it is created.
Declare the class as final to prevent inheritance
Declare all fields as private and final
Do not provide any setter methods
Ensure that any mutable objects within the class are not accessible or modifiable
Provide only getter methods to access the fields
If a field is mutable, return a copy of it instead of the original object
HashMap is an unordered collection while LinkedHashMap maintains insertion order.
HashMap uses hash table to store key-value pairs.
LinkedHashMap uses doubly-linked list to maintain the insertion order.
HashMap provides faster access and retrieval time complexity.
LinkedHashMap provides predictable iteration order based on insertion order.
Example: HashMap - {1=A, 2=B, 3=C}, LinkedHashMap - {1=A, 2=B, 3=C}
To create a singleton class in a multi-threaded environment, we can use double-checked locking or synchronized block.
Use double-checked locking to minimize the use of synchronization and improve performance.
In double-checked locking, check if the instance is null, then synchronize the block and create the instance.
Use volatile keyword to ensure visibility of the instance across threads.
Alternatively, use synchroni...
The wait method in the Object class is used for inter-thread communication and synchronization.
wait() is used to make a thread wait until another thread notifies it.
It is used in multi-threaded applications to coordinate the execution of threads.
wait() releases the lock held by the current thread, allowing other threads to acquire it.
It is typically used in conjunction with notify() and notifyAll() methods.
Example...
A circular linked list is a linked list where the last node points back to the first node, forming a loop.
Create a Node class with data and next pointer
Initialize the head and tail pointers to null
When adding a node, if the list is empty, set head and tail to the new node
If the list is not empty, set the next pointer of the tail to the new node and update the tail
To traverse the circular linked list, start from th...
No, generics are not limited to collections.
Generics can be used with any type of class or interface, not just collections.
They provide type safety and allow for code reusability.
For example, generics can be used with classes like ArrayList, LinkedList, HashMap, etc.
They can also be used with interfaces like Comparable, Iterator, etc.
Normalization is the process of organizing data in a database to eliminate redundancy and improve data integrity.
Normalization helps in reducing data redundancy by breaking down a database into multiple tables.
It ensures that each table has a single purpose and avoids data duplication.
Normalization follows a set of rules called normal forms, such as First Normal Form (1NF), Second Normal Form (2NF), etc.
By elimina...
I appeared for an interview before Feb 2016.
A circular linked list is a linked list where the last node points back to the first node, forming a loop.
Create a Node class with data and next pointer
Initialize the head and tail pointers to null
When adding a node, if the list is empty, set head and tail to the new node
If the list is not empty, set the next pointer of the tail to the new node and update the tail
To traverse the circular linked list, start from the hea...
To create a singleton class in a multi-threaded environment, we can use double-checked locking or synchronized block.
Use double-checked locking to minimize the use of synchronization and improve performance.
In double-checked locking, check if the instance is null, then synchronize the block and create the instance.
Use volatile keyword to ensure visibility of the instance across threads.
Alternatively, use synchronized b...
The wait method in the Object class is used for inter-thread communication and synchronization.
wait() is used to make a thread wait until another thread notifies it.
It is used in multi-threaded applications to coordinate the execution of threads.
wait() releases the lock held by the current thread, allowing other threads to acquire it.
It is typically used in conjunction with notify() and notifyAll() methods.
Example: wai...
No, generics are not limited to collections.
Generics can be used with any type of class or interface, not just collections.
They provide type safety and allow for code reusability.
For example, generics can be used with classes like ArrayList, LinkedList, HashMap, etc.
They can also be used with interfaces like Comparable, Iterator, etc.
RDBMS is a relational database management system that uses structured data, while NoSQL is a non-relational database that uses unstructured data.
RDBMS stores data in tables with predefined schemas, while NoSQL stores data in various formats like key-value, document, columnar, or graph.
RDBMS supports ACID (Atomicity, Consistency, Isolation, Durability) properties, while NoSQL sacrifices some of these properties for scal...
Normalization is the process of organizing data in a database to eliminate redundancy and improve data integrity.
Normalization helps in reducing data redundancy by breaking down a database into multiple tables.
It ensures that each table has a single purpose and avoids data duplication.
Normalization follows a set of rules called normal forms, such as First Normal Form (1NF), Second Normal Form (2NF), etc.
By eliminating ...
HashMap is an unordered collection while LinkedHashMap maintains insertion order.
HashMap uses hash table to store key-value pairs.
LinkedHashMap uses doubly-linked list to maintain the insertion order.
HashMap provides faster access and retrieval time complexity.
LinkedHashMap provides predictable iteration order based on insertion order.
Example: HashMap - {1=A, 2=B, 3=C}, LinkedHashMap - {1=A, 2=B, 3=C}
An immutable class in Java is a class whose state cannot be modified after it is created.
Declare the class as final to prevent inheritance
Declare all fields as private and final
Do not provide any setter methods
Ensure that any mutable objects within the class are not accessible or modifiable
Provide only getter methods to access the fields
If a field is mutable, return a copy of it instead of the original object
Top trending discussions
I applied via Company Website and was interviewed in Sep 2023. There were 2 interview rounds.
DSA is important nowadays
Need to have good communication skill
I applied via Referral and was interviewed before Dec 2023. There were 2 interview rounds.
A take home assignment
I have over 10 years of experience in software engineering, focusing on system architecture and team leadership.
Led a team of 5 engineers in developing a scalable microservices architecture for a financial application.
Implemented CI/CD pipelines that reduced deployment time by 40%.
Worked on a cross-functional team to integrate machine learning algorithms into existing products, enhancing user experience.
Mentored junior...
I applied via Campus Placement
Normal DP question (LC med)
I appeared for an interview in Dec 2020.
Round duration - 120 minutes
Round difficulty - Hard
There was 2 parts. First part problems were based on Quantitative Aptitude. Problems were of 3 types- Easy, Medium and Hard with different scores. Difficulty keeps on increasing if you answer correctly and keeps on decreasing if you answer incorrectly.
First part was of 45 mins.
Second part consisted of 2 coding problems- Medium, Hard. One was based on Greedy and other was a difficult DP + Bitmask problem.
Coding part had more weightage than Aptitude.
In Ninja Land, there are cities numbered from 0 to N-1. The distances between each pair of cities are represented by an N * N matrix 'DIST', where 'DIST[i][j]' is the distance ...
The problem involves selecting K cities to install servers in Ninja Land to minimize the maximum distance from any city to a nearest server.
Iterate through all possible combinations of K cities to select for server installation.
Calculate the maximum distance from any city to the nearest server for each combination.
Choose the combination that minimizes the maximum distance.
Given a non-empty string inputString
, determine if it can be converted into a 'Beautiful String' using the defined operation.
You can perform any number of operations to con...
Determine if a given string can be converted into a 'Beautiful String' using a specific operation.
Check if the input string is already a 'Beautiful String' by checking if it contains 'abc' in the correct positions.
If 'abc' is present in the input string, check if the left and right portions satisfy the defined conditions.
If the conditions are met, return 'True', otherwise return 'False'.
Round duration - 90 minutes
Round difficulty - Medium
There were 3 interviewers in my panel. The most senior panellist asked q. related to my interests and internship experience.
Other 2 asked questions related to Coding and subjects. There was 1 coding question which was implementation based and involved many corner cases. They were checking if I was able to figure out different corner cases and handle those.
There were situation based questions also asked. One question was on system design of Arogya Setu App.
Calculate the product of two complex numbers represented as strings in the form “A+Bi”. Here, ‘A’ represents the real part, and ‘B’ represents the imaginary part.
Calculate the product of two complex numbers represented as strings in the form 'A+Bi'.
Parse the input strings to extract real and imaginary parts of both complex numbers
Perform multiplication of the complex numbers using the formula (a+bi)*(c+di) = (ac - bd) + (ad + bc)i
Format the result as a string in the form 'A+Bi' and return
Round duration - 30 minutes
Round difficulty - Easy
HR round involved basic questions related to background and behaviour. It was basically a cultural fit round.
Tip 1 : Focus on Data Structures, Algorithms as >= 75% of your interview will be dedicated to it. Practice as much as you can.
Tip 2 : Learn the fundamentals of C, C++, OS, SQL as that are basic expectations of interviewer.
Tip 3 : Keep 2 descent projects in resume. Try to have an internship. It will make your resume strong.
Tip 1 : Try to keep relevant information only. Add all your skills and achievements.
Tip 2 : Try to have links of your coding and Github profiles.
Tip 3 : Add 2 to 3 project with small descriptions. Try to keep bullet points. Do mention the Tech Stack.
Tip 4 : Don't lie on any skill. Write only those on which you have worked.
posted on 11 Nov 2023
I applied via Approached by Company and was interviewed in Oct 2023. There were 4 interview rounds.
Just normal MCQ test.
This question involves buying and selling items in an array.
The array must contain strings.
You need to implement a function to buy and sell items from the array.
Provide examples of buying and selling operations.
Software Engineer
100
salaries
| ₹7 L/yr - ₹20.4 L/yr |
Business Process Executive
94
salaries
| ₹3 L/yr - ₹5.2 L/yr |
Senior Business Process Executive
79
salaries
| ₹3.5 L/yr - ₹6.1 L/yr |
Senior Software Engineer
55
salaries
| ₹14 L/yr - ₹27.6 L/yr |
Software Developer
32
salaries
| ₹8.5 L/yr - ₹25 L/yr |
Saud Bahwan Group
Plastic Omnium
Kataria Automobiles
Hilex