Answer:
A Simple Solution is to sort the array in increasing order. The first two elements in sorted array would be two smallest elements. Time complexity of this solution is O(n Log n).
A Better Solution is to scan the array twice. In first traversal find the minimum element. Let this element be x. In second traversal, find the smallest element greater than x. Time complexity of this solution is O(n).
The above solution requires two traversals of input array.
An Efficient Solution can find the minimum two elements in one traversal. Below is complete algorithm.
Algorithm:
Explanation:
It is a circle with a ring around it
Answer: Half of the same traits
Explanation
Answer:
Both made products from other continents available to the peoples along the route.
Explanation:
This is true due to the fact that majority of goods and products from other continents passes through those routes. As it passes along, it is now possible for other people to be able to purchase such products thereby making it available for them.