Question
A boat takes 7 hours to cover 245 km upstream and 9
hours to cover 477 km downstream. Find the time taken by the boat to cover 410 km upstream and 495 km downstream if speed of boat in still water is increased by 4 km/h and speed of stream is decreased by 2 km/h.Solution
Upstream speed = 245/7 = 35 km/h Downstream speed = 477/9 = 53 km/h Speed of boat in still water = (35 + 53)/2 = 44 km/h Speed of stream = (53 – 35)/2 = 9 km/h Increased speed of boat in still water = 44 + 4 = 48 km/h Decreased speed of stream = 9 – 2 = 7 km/h Required time taken = 410/(48 – 7) + 495/(48 + 7) = 10 + 9 = 19 hours
What is false about linked list?
Which layer of the TCP/IP model is responsible for IP addressing and routing?
Which hazard occurs when there is a conflict in accessing a shared resource, such as a register file or an ALU, in an instruction pipeline?
Which consensus mechanism is used by Bitcoin, the first blockchain-based cryptocurrency?
In dynamic programming, what does "optimal substructure" mean?
What is a "token" in lexical analysis?
Which sorting algorithm is known for its best-case time complexity of O(n) when the input is already partially sorted?
Which data visualization technique is commonly used to represent the frequency distribution of a large dataset?
An XML document is a string of ____.
Which of the following algorithm is most sensitive to outliers?