Benpian continued homepage excluded even-papers
Specific issues and a detailed explanation see above article,
Data in this chapter speak with the most convenient way, a minimum of code to achieve our objective.
(Of course, you may also have other good way. I hope we shall remind, in order to improve the latter part of this article)
The approach here we probably speak two
1: no array, i.e., sequentially determining from the forward, to give the first odd-numbered by 1, the second multiplied by 10, are sequentially processed, the results are added. When judged complete output to the most significant bit out of the loop.
2: an array: i.e., from the back, did not give an odd sequence into an array, and finally reverse order output.
For that matter, I still recommend using cyclic resolved. Because the definition becomes an issue, then an array of array length, in vain would take up too much memory is too long, too short, fear of bounds.
So here only for the first method for encoding, the second we can bring to practice your hand, try to beat yourself.