Which of the following is correct syntax of making heap from a vector v?
Posted: Wed Jul 13, 2022 7:53 pm
a) make_heap(v.elements);
b) make_heap(v);
c) make_heap(v.end(), v.begin());
d) make_heap(v.begin(), v.end());
b) make_heap(v);
c) make_heap(v.end(), v.begin());
d) make_heap(v.begin(), v.end());