Question
A boat can cover 80 km upstream and 200 km downstream in
14 hours. Speed of the stream is how much less than the speed of the boat in still water if the boat can cover 64 km upstream and 160 km downstream in 10 hours?Solution
ATQ, Let the upstream speed and downstream speed of the boat be x km/h and y km/h, respectively. So according to question: 80/x + 200/y = 14 β¦β¦β¦β¦β¦β¦. (i) Also, 64/x + 160/y = 10 β¦β¦β¦.. (ii) Solving (i) and (ii), we get x = 16 and y = 32 So, the upstream speed and downstream speed of the boat are 16 km/h and 32 km/h, respectively. Speed of the boat in still water = (16 + 32)/2 = 24 km/h Speed of the stream = (32 β 16)/2 = 8 km/h So, the desired difference = 24 β 8 = 16 km/h
What is the time complexity of the peek operation (accessing the top element without removing it) in a stack implemented using a singly linked list?
You are designing a system where multiple threads need to access and modify a shared counter variable. What is a critical concern you must address to en...
Kernel is :
Which of the following scheduling algorithms minimizes average seek time?
Which of the following statements accurately describes the use of the SQL CREATE statement?
Which of the following is a non-linear data structure?
What is the primary purpose of cookies on a website?
Which of the following is a self-balancing Binary Search Tree that ensures a maximum height difference of 1 between the left and right subtrees of any n...
Which of the following is NOT a type of firewall?Β
If a class inheriting an abstract class does not define all of its function then it will be known as :