title: How to Find the Means of an Array, By Counting The Digit Simultaneously
body: <p>Excuse me all, I want to ask one question, it was bothering me right now. I think it's a quite simple. But i don't know how to solve it. Perhaps you all know about this.</p>
  <p>This question is an array like this <code>[3,4,5]</code> and the answer is 5</p>
  <p>The algorithm to get the answer is by doing this things</p>
  <p><a href="https://i.stack.imgur.com/mbYOv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mbYOv.png" alt="3  4   5
  /  /
  4   5
  /
  5" /></a></p>
  <p>(Every decimal number will be rounds up to the next largest integer)</p>
  <p>So the answer that we will get is 5.</p>
  <hr />
  <p>For other question is like <code>[8,1,8,8,0]</code> the output will be 7</p>
  <p><a href="https://i.stack.imgur.com/a2AYL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a2AYL.png" alt="enter image description here" /></a></p>
  <p>Is there is someone that maybe knows how to solve this, i use javascript for this algorithm.</p>
  <p>But still can't finding the way to solve this</p>
  <p>Every help would be nice,</p>
  <p>thanks</p>