Solved

The Difference Between Functions Partition and Stable_partition Is That

Question 25

Multiple Choice

The difference between functions partition and stable_partition is that:


A) partition may throw an exception while stable_partition will not.
B) partition can only be called on a sequence that is already sorted.
C) stable_partition maintains the original order for the elements in each of the two resulting partitions with respect to the other elements in that same partition.
D) stable_partition allows an element to be duplicated and placed into both partitions.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions