Filter interviews by
Measure the height of a room using a thread.
Tie one end of the thread to a known height point, such as a door handle.
Hold the other end of the thread and let it hang down to the floor.
Mark the point where the thread touches the floor.
Repeat the process at different points in the room to get multiple measurements.
Take the average of the measurements to estimate the height of the room.
To print a linked list in reverse order, we can use recursion or a stack data structure.
Recursion: Traverse the linked list recursively until the end, then print the current node.
Stack: Traverse the linked list and push each node onto a stack. Then pop and print the nodes from the stack.
Process scheduling is the method by which the operating system decides the order in which processes are executed.
Process scheduling determines the fairness and efficiency of resource allocation.
Different scheduling algorithms prioritize different factors such as CPU utilization, response time, and throughput.
Examples of scheduling algorithms include First-Come, First-Served (FCFS), Round Robin, and Shortest Job Ne...
Dijkstra algorithm is a graph search algorithm that finds the shortest path between nodes in a weighted graph.
Dijkstra algorithm uses a priority queue to select the node with the smallest distance from the source node.
It maintains a distance array to keep track of the shortest distance from the source node to each node in the graph.
The algorithm iteratively selects the node with the smallest distance and updates t...
Deadlock is a situation in which two or more processes are unable to proceed because each is waiting for the other to release a resource.
Deadlock occurs when two or more processes are stuck in a circular wait.
Four necessary conditions for deadlock are mutual exclusion, hold and wait, no preemption, and circular wait.
Examples of deadlock prevention techniques include resource allocation graphs and bankers' algorith...
Banker's algorithm is a resource allocation and deadlock avoidance algorithm used in operating systems.
Banker's algorithm is used to prevent deadlock in a system with multiple processes and resources.
It works by simulating the allocation of resources to processes and checking if it leads to a safe state.
The algorithm considers the current allocation, maximum needs, and available resources to make decisions.
If a re...
I appeared for an interview in Jan 2017.
Measure the height of a room using a thread.
Tie one end of the thread to a known height point, such as a door handle.
Hold the other end of the thread and let it hang down to the floor.
Mark the point where the thread touches the floor.
Repeat the process at different points in the room to get multiple measurements.
Take the average of the measurements to estimate the height of the room.
Process scheduling is the method by which the operating system decides the order in which processes are executed.
Process scheduling determines the fairness and efficiency of resource allocation.
Different scheduling algorithms prioritize different factors such as CPU utilization, response time, and throughput.
Examples of scheduling algorithms include First-Come, First-Served (FCFS), Round Robin, and Shortest Job Next (S...
To print a linked list in reverse order, we can use recursion or a stack data structure.
Recursion: Traverse the linked list recursively until the end, then print the current node.
Stack: Traverse the linked list and push each node onto a stack. Then pop and print the nodes from the stack.
Dijkstra algorithm is a graph search algorithm that finds the shortest path between nodes in a weighted graph.
Dijkstra algorithm uses a priority queue to select the node with the smallest distance from the source node.
It maintains a distance array to keep track of the shortest distance from the source node to each node in the graph.
The algorithm iteratively selects the node with the smallest distance and updates the di...
Banker's algorithm is a resource allocation and deadlock avoidance algorithm used in operating systems.
Banker's algorithm is used to prevent deadlock in a system with multiple processes and resources.
It works by simulating the allocation of resources to processes and checking if it leads to a safe state.
The algorithm considers the current allocation, maximum needs, and available resources to make decisions.
If a request...
Deadlock is a situation in which two or more processes are unable to proceed because each is waiting for the other to release a resource.
Deadlock occurs when two or more processes are stuck in a circular wait.
Four necessary conditions for deadlock are mutual exclusion, hold and wait, no preemption, and circular wait.
Examples of deadlock prevention techniques include resource allocation graphs and bankers' algorithm.
Dea...
Top trending discussions
I applied via Walk-in and was interviewed before Aug 2020. There was 1 interview round.
I appeared for an interview in Aug 2016.
The ISO/OSI model is a conceptual framework that standardizes the functions of a communication system into seven layers.
The ISO/OSI model stands for International Organization for Standardization/Open Systems Interconnection model.
It is a layered model that helps in understanding and designing network protocols.
The seven layers are: Physical, Data Link, Network, Transport, Session, Presentation, and Application.
Each la...
To lock a file in Linux, use the flock command or the fcntl system call.
The flock command can be used to lock a file by acquiring an exclusive or shared lock.
The fcntl system call can be used to lock a file by setting the F_SETLK or F_SETLKW command.
Locking a file prevents other processes from modifying or accessing it until the lock is released.
Locking can be done at the file level or at specific regions within a file...
CSS stands for Cascading Style Sheets. It is used to style the appearance of HTML elements on a webpage.
CSS helps in separating the content of a webpage from its design, making it easier to maintain and update.
It allows for consistent styling across multiple pages of a website.
CSS can be used to control layout, colors, fonts, and other visual aspects of a webpage.
It enables responsive design, making websites adapt to d...
To find a loop in a linked list, we can use the Floyd's cycle-finding algorithm.
Use two pointers, one moving at a speed of one node at a time and the other at a speed of two nodes at a time.
If there is a loop, the two pointers will eventually meet at the same node.
To find the starting point of the loop, move one pointer back to the head and then move both pointers at a speed of one node at a time.
The point where they m...
I enjoy exploring new technologies, solving complex problems, and collaborating with others to create innovative solutions.
Exploring new technologies
Solving complex problems
Collaborating with others
Creating innovative solutions
In 10 years, the software industry will be driven by AI, automation, and a focus on security and sustainability in development.
AI Integration: Software will increasingly leverage AI for tasks like code generation, testing, and bug fixing, enhancing developer productivity.
Low-Code/No-Code Platforms: These platforms will democratize software development, allowing non-developers to create applications with minimal coding.
...
I applied via Walk-in and was interviewed before Dec 2019. There were 4 interview rounds.
Python is a high-level, interpreted programming language known for its simplicity and ease of use.
Python is used for web development, data analysis, artificial intelligence, and more.
It has a large standard library and supports multiple programming paradigms.
Python code is easy to read and write, making it a popular choice for beginners.
Python uses indentation to indicate blocks of code, rather than curly braces or key...
I applied via Campus Placement and was interviewed before Jun 2021. There were 4 interview rounds.
2 coding questions (1 DP + 1 Graph)
About ai
today generation
based on 14 reviews
Rating in categories
Software Engineer
1.7k
salaries
| ₹12 L/yr - ₹22 L/yr |
Lead Engineer
686
salaries
| ₹18.8 L/yr - ₹35 L/yr |
Senior Software Engineer
604
salaries
| ₹16 L/yr - ₹25 L/yr |
Chief Engineer
405
salaries
| ₹27 L/yr - ₹50 L/yr |
Senior Chief Engineer
343
salaries
| ₹30.1 L/yr - ₹55 L/yr |
vivo
OPPO
LG Electronics
Bajaj Electricals