A swimmer can swim with velocity of 6km/h respect to river which is flowing with velocity of 3km/h then find the time taken by swimmer to reach just opposite site on the other bank if width of river is 15√3km
Answers
Answer:
Sort the array elements into increasing order.
Walk along the array inwards from the ends, finding pairs with the correct sum. That is, maintain two “current indices” in the sorted array, initially referencing the first and last values. If the sum of the values at these indices is too high, decrement the higher index. If the sum is too low, increment the lower index. If the sum is correct, note this as least of the solution, and increment the lower index as well as the higher index. Obviously, you should stop if the two indices meet or cross in the middle, so the “lower” index becomes no less than the “higher” index.
It's worth thinking why this approach is guaranteed not to miss solutions.
Answer:
The basic processes of life include organization, metabolism, responsiveness, movements, and reproduction. ... In humans, who represent the most complex form of life, there are additional requirements such as growth, differentiation, respiration, digestion, and excretion.