| 1 | Start | 3 | 0 | 0 | 1 | 3 | [3] (candidate=3, count=1) |
| 2 | Compare element with candidate | 3 | 1 | 3 | 2 | 3 | [3,3] (candidate=3, count=2) |
| 3 | Compare element with candidate | 4 | 2 | 3 | 1 | 3 | [3,3,4] (candidate=3, count=1) |
| 4 | Compare element with candidate | 2 | 1 | 3 | 0 | 3 | [3,3,4,2] (candidate=3, count=0) |
| 5 | Count is zero, update candidate | 2 | 0 | 3 | 1 | 2 | [3,3,4,2,2] (candidate=2, count=1) |
| 6 | Compare element with candidate | 2 | 1 | 2 | 2 | 2 | [3,3,4,2,2,2] (candidate=2, count=2) |
| 7 | Compare element with candidate | 2 | 2 | 2 | 3 | 2 | [3,3,4,2,2,2,2] (candidate=2, count=3) |
| 8 | Compare element with candidate | 3 | 3 | 2 | 2 | 2 | [3,3,4,2,2,2,2,3] (candidate=2, count=2) |
| 9 | Compare element with candidate | 3 | 2 | 2 | 1 | 2 | [3,3,4,2,2,2,2,3,3] (candidate=2, count=1) |
| 10 | Compare element with candidate | 3 | 1 | 2 | 0 | 2 | [3,3,4,2,2,2,2,3,3,3] (candidate=2, count=0) |
| 11 | Count is zero, update candidate | 3 | 0 | 2 | 1 | 3 | [3,3,4,2,2,2,2,3,3,3,3] (candidate=3, count=1) |
| 12 | Compare element with candidate | 3 | 1 | 3 | 2 | 3 | [3,3,4,2,2,2,2,3,3,3,3,3] (candidate=3, count=2) |
| 13 | End of array | - | 2 | 3 | 2 | 3 | Final candidate is 3 |