Generic Hacker Rank Solution

template <typename Element> void printArray(vector<Element> arr) {
for (int i = 0; i < arr.size(); i++) {
cout << arr[i] << endl;
}
}

Comments

Popular Posts