June 23, 2019
None of these
Currently there is no PrepInsta Explanation. Did you know?
You can also submit your own version of explanations under user explanation section and also view other submitted explanations by other users.
Please login to submit your explanation
You can check your performance of this question after Login/Signup
Group A Group B
A. Stacks 1. Matrix Multiplication
B. Queue 2. Fastest Search
C. Arrays 3. FIFO
D. Trees 4. LIFO
A1, B3, C4, D2
A4, B3, C1, D2
A4, B3, C2, D1
A1, B3, C2, D4
answer should be 318
Check algo here - https://www.geeksforgeeks.org/queue-using-stacks/
Both 1 and 2
Only stack has these queue has enqueue and dequeue
When a resource is shared among multiple consumers.
When data is transferred asynchronously (data not necessarily received at same rate as sent) between two processes
All the above
Queue has many applications like - 1) When a resource is shared among multiple consumers. Examples include CPU scheduling, Disk Scheduling.
2) When data is transferred asynchronously (data not necessarily received at same rate as sent) between two processes. Examples include IO Buffers, pipes, file IO, etc.
Please login to report
Login/Signup to comment