Q502
Which of the following is correct syntax of making heap from a vector v?
A.
make_heap(v.elements);
B.
make_heap(v);
C.
make_heap(v.end(), v.begin());
D.
make_heap(v.begin(), v.end());
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board