|
Please stick to the exact statement of the problem, indexing arrays from 1 to N. It will save us intertranslations when discussing the problem. But don't expend any work on doing this with C or other languages whose arrays are all indexed starting with 0. Just ignore the 0 entry. When you think of a lot of work, I expect you're thinking of some sort of efficient translation that decrements every array index so no spaces are wasted. Just go ahead and waste the space. The point is to demonstrate the structure of the problem, not to conserve a single word of memory. Mike O'D. |
to: