Question
‘A’ and ‘B’ can do a piece of work in 12 days
and 15 days, respectively. If they started the work together and worked on it for 2 days, then find the time taken by ‘B’ alone to complete the remaining work.Solution
Let total amount of work be 60 units Efficiency of ‘A’ = 60/12 = 5 units/day Efficiency of ‘B’ = 60/15 = 4 units/day Amount of work done by ‘A’ and ‘B’ together in 2 days = (5 + 4) × 2 = 18 units Time taken by B to complete remaining work = (60 – 18)/4 = 10.5 days
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:
For a comparison-based sorting algorithm, which lower bound applies to the worst-case number of comparisons?
The Master Theorem gives time complexity for recurrences of the form:
Which command is used to undo the changes
Which of the following is NOT a greedy algorithm?
Which of the following is NOT a divide-and-conquer algorithm?
Which is not true about minimum spanning tree?
The time complexity of building a heap from an unsorted array of n elements is:
Which of the following is substring of “IXAMBEE”?