To respond to the question:
std::vectorT> is used to create dynamically sized arrays at runtime.
Ideally, you'd use one of these to get feedback.
If not, they are simple to convert.
For instance, you might make two arrays like this:
template <typename T>
void merge_sort(std::vector<T>& array) {
...READ MORE
Jun 10, 2022
in C++
by
Damon
• 4,960 points
•
931 views