anmolrishi / ProgrammingHub

For the benefit of programmers.
MIT License
10 stars 111 forks source link

Implemented: zeros_to_tail() #18

Closed izanbf1803 closed 6 years ago

izanbf1803 commented 6 years ago

Solved: #10

anmolrishi commented 6 years ago

That's a clever approach. But I was looking for exactly n iterations in void zeros_to_tail(vector& v). Your code will run (n + number of zeroes) iterations.