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:
The correct answer is Drive-reduction theory
Explanation:
In psychology, motivation is a factor that triggers a specific behavior or action. Moreover, motivations have been widely studied and analyzed using different theories and approaches. One of these is the drive-reduction theory; this theory explains motivations are related to inner drives or biological/psychological impulses and a desire to meet those impulses. For example, the drive to eat and the desire to meet this drive motivated the first humans to hunt. According to this, it is the drive-reduction theory the one that states internal tension or drives trigger motivations.
most financial decisions are made at the corporate level in global cities.