Question
A cistern is normally filled in 18 hours, but it takes
12 hours longer to fill because of a leak at its bottom. If the cistern is full, how long will it take to empty it?Solution
Let pipe is A and leak is B Â Â AÂ Â Â Â Â Â Â Â Â Â Â Â Â A+B Â Â 18Â Â Â Â Â Â Â Â Â Â Â Â Â Â 30 Let total tank = LCM(18,30) = 90 L Â 5Â Â Â Â Â Â Â :Â Â Â Â Â Â Â Â Â Â 3 So 1 hr work of leak = 3 - 5 = -2 Therefore, the leak will drain all the water of the tank in 90/2 = 45 hours.
Which of the following is a default connector for Shielded twisted pair?
What is Computer Output Microfilm (COM) primarily used for in data management and archival systems?
What does the term "code optimization" refer to in the context of software development?
The order of convergence of Newton-Raphson method is:
Complete the while loop condition for an iterative binary search implementation.
def binary_search(arr, target):
  low = 0
 �...
What is the time complexity for inserting an element into a binary heap?
Predict the output
list1 = ['physics', 'chemistry', 1997, 2000]
list2 = [1, 2, 3, 4, 5, 6, 7 ]
print "list1[0]: ", list1[0]Â Â Â ...
Given the string S = "aabaaab" for Z-Algorithm, what is the Z-array for this string? (Z is typically 0 or undefined).
A good hash function aims to achieve which of the following characteristics?
What is the primary purpose of Continuous Integration (CI) in software development?Â