MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / insert

Function insert

CPP/arrays/DuplicateZeroes.cpp:4–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2public:
3
4 void insert(vector<int>& arr,int i,int j)
5 {
6 if(j<arr.size())
7 arr[j] = arr[i];
8 }
9 void duplicateZeros(vector<int>& arr) {
10 int zeroes=0;
11 for(int i : arr)

Callers 1

duplicateZerosFunction · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected