Question
Given the array [38, 27, 43, 3, 9, 82, 10], what would
be the two sorted subarrays immediately *before the final merge step* in a Merge Sort algorithm?Solution
-
The array has 7 elements
-
It is divided into:
-
Left half: [38, 27, 43, 3]
-
Right half: [9, 82, 10]
-
Each half is independently fully sorted before the final merge. Sorting the left half [38, 27, 43, 3] Sorted → [3, 27, 38, 43] Sorting the right half [9, 82, 10] Sorted → [9, 10, 82] Just before final merge The two sorted subarrays are: [3, 27, 38, 43] [9, 10, 82] These two are then merged to produce the final sorted array:
[3, 9, 10, 27, 38, 43, 82]
Section 16 Explanation (a) of the Environment (Protection) Act, 1986 defines "company" to include:
As per the Competition Act there shall be an abuse of dominant position if an enterprise or a group _______________
Section 82 of the Negotiable Instrument Act, 1881 deals with _________.
The principle that “the same income should not be taxed twice in the hands of the same person” refers to which of the following?
Salomon v. Salomon & Co. established which core principle?Â
Is it mandatory to reduce arbitration award into writing?
A, on his trial before the Court of Session, says that a deposition was improperly taken by B, who is the Magistrate, in such a case:
What is the implied warranty in a contract of sale of goods that the goods shall be reasonably fit for?
A sends a threatening and abusive message to B through an online messaging platform. The message does not involve obscenity but is grossly offensive and...
Money Bills shall not be introduced in: