Search code examples
data-structurespositionsequencesrank

What is position in terms of a sequence?


I'm trying to learn about the abstract data type "sequences" and am told it has both rank and position. Rank is the number of elements that come before a given element but what's position?


Solution

  • It ment relative like in a linked list you can only go to the next (or possibly previous) node.