Filter interviews by
ACID stands for Atomicity, Consistency, Isolation, and Durability in databases.
Atomicity ensures that all operations in a transaction are completed successfully or none at all.
Consistency ensures that the database remains in a consistent state before and after the transaction.
Isolation ensures that multiple transactions can be executed concurrently without affecting each other.
Durability ensures that once a transaction...
Checked exceptions are checked at compile time while unchecked exceptions are not checked at compile time.
Checked exceptions are subclasses of Exception class except RuntimeException and its subclasses.
Unchecked exceptions are subclasses of RuntimeException and Error classes.
Checked exceptions must be caught or declared in the method signature using 'throws' keyword.
Unchecked exceptions do not need to be caught or decl...
To find the minimum difference between any two integers of 2 sorted lists, iterate through both lists simultaneously and keep track of the minimum difference.
Iterate through both sorted lists simultaneously
Keep track of the minimum difference found so far
Update the minimum difference if a smaller difference is found
Top trending discussions
Name mangling is a technique used by compilers to give unique names to functions and variables to avoid naming conflicts.
Name mangling is used in C++ to support function overloading.
It is also used in Python to avoid naming conflicts in modules.
Name mangling can make it difficult to access variables and functions from outside the class in which they are defined.
In C++, name mangling can be seen by using the 'nm' comman
I applied via Job Fair and was interviewed before May 2021. There were 2 interview rounds.
Abstract Factory is a creational design pattern that provides an interface for creating families of related objects.
Abstract Factory is used when we need to create families of related objects without specifying their concrete classes.
It provides an interface for creating objects of related classes without specifying their concrete classes.
It encapsulates a group of factories that have a common theme.
It promotes loose c...
Range based map iteration can be done using a for-each loop or iterators.
Use a for-each loop to iterate over the map elements.
Alternatively, use iterators to traverse the map.
The range-based for loop is preferred for its simplicity and readability.
Example: for(auto const& [key, value] : myMap) { //do something with key and value }
Detached threads are independent threads that run separately from the main thread. Joined threads are threads that wait for the main thread to finish.
Detached threads are created using pthread_detach() function
Joined threads are created using pthread_join() function
Detached threads do not need to be explicitly terminated
Joined threads must be explicitly terminated using pthread_exit() or return statement
Detached thread...
Static code analysis tools are software programs that analyze source code to find potential issues and improve code quality.
Static code analysis tools scan code without executing it
They can detect issues such as security vulnerabilities, coding errors, and performance problems
Examples of static code analysis tools include SonarQube, ESLint, and Checkstyle
Command to list currently running threads in linux
Use the 'ps' command with the 'H' option to display threads in a hierarchy
Use the 'top' command to display threads in real-time
Use the 'htop' command for an interactive display of threads
No, arithmetic operations cannot be performed on unique pointers.
Unique pointers are used to manage the lifetime of dynamically allocated objects.
They cannot be copied or assigned, only moved.
Arithmetic operations are not defined for pointers, including unique pointers.
Designing Facebook is a complex task involving various components and technologies.
Identify the core features of Facebook such as user profiles, news feed, messaging, and groups.
Choose appropriate technologies for each component such as PHP for backend, React for frontend, and MySQL for database.
Ensure scalability and performance by implementing caching, load balancing, and database sharding.
Implement security measures...
I applied via Company Website and was interviewed in Nov 2020. There was 1 interview round.
I applied via Naukri.com and was interviewed in May 2021. There was 1 interview round.
I applied via Approached by Company and was interviewed in Sep 2023. There were 2 interview rounds.
Traverse through a matrix of uppercase english alphabets to find a given word. you are allowed to make up to k jumps, and same position can be repeated too.
Compression of 0-1 matrix involves reducing the size of the matrix by storing only the necessary information.
Use run-length encoding to compress the matrix by storing consecutive repeated values as a single value and count.
Identify patterns in the matrix that can be represented more efficiently.
Consider using sparse matrix representation if the matrix has a lot of zeros.
Implement efficient algorithms to compress and de...
I applied via Naukri.com and was interviewed in Apr 2024. There were 2 interview rounds.
3 dsa questions and various golang concepts and 1 concurrency question
based on 1 interview
Interview experience
based on 1 review
Rating in categories
Trust and Safety Specialist
73
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
65
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
58
salaries
| ₹0 L/yr - ₹0 L/yr |
Content Reviewer
37
salaries
| ₹0 L/yr - ₹0 L/yr |
Account Director
31
salaries
| ₹0 L/yr - ₹0 L/yr |
Microsoft Corporation
Amazon