Posted: Wed Oct 07, 2009 10:39 pm Post subject: List Correspondence
The question state the conditions:
We informally define the term corresponding element as follows:
The first element and the last element of a list are corresponding elements.
Similarly, the second element and the element just before the last element are corresponding elements.
The third element and the element just before the element just before the last element are corresponding elements -- and so on.
Given that the variable a is associated with a list, write an expression for the corresponding element of a[i] .
But I really do not know how to start this.
Please help
Thanks a bunch.
Sponsor Sponsor
Tony
Posted: Wed Oct 07, 2009 10:44 pm Post subject: RE:List Correspondence
Ok, lets try it this way:
What is the corresponding element of a[0]? (The answer is in the question itself)
a[1] ? (also in the question)
a[2] ? (follow the patten)
...
a[i] ?