Skip to content

Instantly share code, notes, and snippets.

View Kabiirk's full-sized avatar

Kabiir Krishna Kabiirk

View GitHub Profile
@Kabiirk
Kabiirk / vectorOps.cpp
Created October 19, 2021 17:52
Common operation utilities for C++ Vectors
void printVector(vector<int> vect){
cout<<"< ";
for (unsigned int i: vect){
std::cout << i << ' ';
}
cout<<">"<<endl;
}
// Element-wise Multiplication of a vector with a Scalar
vector<int> scalarMultipleVect(vector<int> vect, int scalar){