subject

Let A be an array of n elements. Write a template function, minMaxFunc(...). which takes two parameters: 1. an unsorted array of type as an input parameter.
2. whether you want the minimum or maximum value

Use TWO stacks within the function to determine the minimum or maximum value and return that element
Stack 1 (LINKED LIST) holds values in ascending/descending order.
Stack 2 (ARRAY) is a "temporary" work stack as you insert values to keep them in order.

Once all values have been processed you must also print the values in the stack. In this question, you may use global constant SIZE-5. You must wrie all functions you call (PUSH, POP, PEEK, ISFULL ISEMPTY). You the first set then replace with the second set]: 4 1
13 3 2
1.1 4.1 8.1 5.2 2.3

Finally, with no changes to your function, instantiate your function for type char and report the outcome when using the first test data above.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:30
What result from the passage of this amendment
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
When designing content as part of your content marketing strategy, what does the "think" stage represent in the "see, think, do, care" framework?
Answers: 3
question
Computers and Technology, 22.06.2019 15:30
To increase sales, robert sends out a newsletter to his customers each month, letting them know about new products and ways in which to use them. in order to protect his customers' privacy, he uses this field when addressing his e-mail. attach bcc forward to
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
The forerunner to cell phones, pdas, and smartphones was
Answers: 1
You know the right answer?
Let A be an array of n elements. Write a template function, minMaxFunc(...). which takes two paramet...
Questions
question
Mathematics, 26.10.2019 12:43
question
Mathematics, 26.10.2019 12:43
question
Chemistry, 26.10.2019 12:43
question
Advanced Placement (AP), 26.10.2019 12:43
Questions on the website: 13722361