Question
30 labourers are assigned to dig a 4 km canal. After 12
days, only half of the work is over. Later, 6 more labourers are added. Find in how many days the remaining work will be completed.Solution
ATQ, Let the number of days to complete the remaining work be x. (30 × 12) / (1/2 × 4) = 36x / (1/2 × 4) (30 × 12) / 2 = 36x / 2 180 = 18x x = 10 days
The amortized time for inserting into a dynamic array (like C++ vector) is:
Which algorithm is best suited to find the shortest path in a graph with negative edge weights but no negative cycles?
Which algorithm returns a minimum spanning tree (MST) and uses a priority queue to select the next edge connected to the growing tree?
Which of the following protocols is most commonly used in IoT devices to enable communication between smart devices?
Dynamic Programming is preferred over recursion when:
Which of the following operations on a data structure refers to the removal of an element from the front of a queue?
Which of the following SQL queries is used to remove a table from a database?
Which algorithm is best suited for finding a Hamiltonian cycle in an undirected graph?   Â
Which data structure is used for implementing recursive function calls?
Which protocol is most commonly used for secure communication between IoT devices over the internet?    Â