Give at least two STL containers that fit the Adapter Pattern as described in the text. Answer: The stack, queue, and priority queue are the adapter containers. Describe the sort pattern. Discuss the quick sort routines in terms of this pattern.
What will be an ideal response?
```
Sort array
1)Get split point and Split two parts
2)Sort first part(recursive)
3)Sort second part (recursive)
4)Join sorted parts.
```
Computer Science & Information Technology
You might also like to view...
Which of the following statements about the NIST Cybersecurity Framework is true?
A) It was created in the U.S. and is used exclusively within the U.S. B) It was created in the U.S. and is also used outside of the U.S. C) It was created outside of the U.S. and is used worldwide. D) None of the above
Computer Science & Information Technology
Which X Window component controls hardware components and gives client applications access to hardware?
A. Monitor B. Client C. Server D. Display server
Computer Science & Information Technology