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 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...
posted on 29 Nov 2022
I applied via Naukri.com and was interviewed before Nov 2021. There were 2 interview rounds.
Improved efficiency of production line at XYZ manufacturing plant
Implemented lean manufacturing principles to reduce waste and increase productivity
Introduced automation in certain processes to reduce manual labor and increase accuracy
Optimized supply chain management to ensure timely delivery of raw materials
Trained and empowered employees to identify and solve problems on the production line
Implemented a continuous i...
I applied via Walk-in and was interviewed before Feb 2022. There were 3 interview rounds.
I appeared for an interview in Feb 2021.
Round duration - 120 minutes
Round difficulty - Easy
Round duration - 90 minutes
Round difficulty - Medium
The round contains mcqs on core java , javascript , oops and two coding questions of data structures.
The exam was at 7pm
Platform was good
Given a 2-dimensional array ARR
with 'N' rows and 'M' columns, and a set of queries in a 2-dimensional array Queries
of size 'K', each query contains four integers that denote the top-...
Given a 2D array and a set of queries, find the sum of elements within specified submatrices for each query.
Parse input to get array dimensions, elements, and queries
Iterate through queries and calculate sum of elements within specified submatrix
Output the sum for each query
You are given a string named str
and an integer D
. Your task is to perform both left (anticlockwise) and right (clockwise) rotations on the given string by D
units, start...
Implement functions to perform left and right rotations on a given string by a specified number of positions.
Implement a function leftRotate() to perform left rotation on the string by D units.
Implement a function rightRotate() to perform right rotation on the string by D units.
Return the modified string after each rotation.
Ensure to handle cases where D can be greater than the length of the string.
Tip 1 : Good knowledge of basics of data structure.
Tip 2 : Question need to be done with optimized time complexity until you won't be able to pass all test cases.
Tip 1 : Atleast one good project
Tip 2 : Specially mention Java and JavaScript
based on 14 reviews
Rating in categories
Software Engineer
1.7k
salaries
| ₹12 L/yr - ₹20 L/yr |
Lead Engineer
643
salaries
| ₹18.8 L/yr - ₹35 L/yr |
Senior Software Engineer
598
salaries
| ₹16 L/yr - ₹25.1 L/yr |
Chief Engineer
396
salaries
| ₹27 L/yr - ₹50 L/yr |
Engineer
330
salaries
| ₹10.6 L/yr - ₹18 L/yr |
vivo
OPPO
LG Electronics
Bajaj Electricals