2 ms·
In 1-based indexing, the index of an item is the number of items you've already seen, including the one you're looking at. In 0-based indexing, the index of an
by xigoi 4y ago
In 1-based indexing, the index of an item is the number of items you've already seen, including the one you're looking at.
In 0-based indexing, the index of an item is the number of items you've already seen, excluding the one you're looking at.