You are viewing a single comment's thread. Return to all comments →
can u please explain the use of counter?
Take a look at the C example below by "etayluz", followed by my explanation on why the counter is reduced by half at the end. It might help shed some light as to why a counter is used to solve the problem.