i
Filter interviews by
I applied via Campus Placement and was interviewed in Jul 2024. There were 2 interview rounds.
The worst case time complexity of merge-sort is O(n log n).
Merge-sort divides the array into two halves, recursively sorts them, and then merges them back together.
In the worst case scenario, the array is divided log n times and each division takes O(n) time.
Therefore, the worst case time complexity of merge-sort is O(n log n).
Dependency injection is a design pattern where components are given their dependencies rather than creating them internally.
Dependency injection helps in achieving loose coupling between classes.
It allows for easier testing by providing mock dependencies.
There are three types of dependency injection - constructor injection, setter injection, and interface injection.
Functional interface is an interface with only one abstract method, used in Java to achieve functional programming.
Functional interface has only one abstract method, but can have multiple default or static methods.
It can be annotated with @FunctionalInterface to ensure it has only one abstract method.
Functional interfaces are used in Java to enable functional programming features like lambda expressions.
Examples of fun...
No, databases cannot be stored using only POST requests.
Databases are typically stored on a server or in the cloud, not through HTTP requests.
POST requests are used to send data to a server, not to store databases.
Database management systems like MySQL, PostgreSQL, or MongoDB are used to store and manage databases.
Top trending discussions
Executive Accountant
25
salaries
| ₹1.5 L/yr - ₹4.2 L/yr |
Senior Sales Development Representative
5
salaries
| ₹3.8 L/yr - ₹5 L/yr |
Data Scientist
4
salaries
| ₹5 L/yr - ₹5.2 L/yr |
Assistant Manager
4
salaries
| ₹6 L/yr - ₹9 L/yr |
Senior Accounts Executive
4
salaries
| ₹2.9 L/yr - ₹3.3 L/yr |
TCS
Infosys
Wipro
HCLTech