Write a Modified Insertion Sort Algorithm for integer key values. However, the moderation is: The input is a stack (not an array), and the only variables that your algorithm may use are a fixed number of integers and a fixed number of stacks. The algorithm should return a stack containing the records in sorted order (with the least value being at the top of the stack). Your algorithm should be O(n2) in the worst case.
Answers
Answer:
The Patriot
Explanation:
Write a Modified Insertion Sort Algorithm for integer key values. However, the moderation is: The input is a stack (not an array), and the only variables that your algorithm may use are a fixed number of integers and a fixed number of stacks. The algorithm should return a stack containing the records in sorted order (with the least value being at the top of the stack). Your algorithm should be O(n2) in the worst case.1.To follow the laws and regulations of the country. 2.To pay all taxes honestly regularly and in time. 3.To avoid corrupting public servants. 4.To make proper use of scarce resources of the nation. 5.To assist in solving the national problems like poverty, unemployment, and balanced regional growth etc. 6.To avoid Monopoly and concentration of economic power