fixed size array and index variable
use index mod size to replace first element and increment index ? 😏
that way for each transfer you just replace a single element and increment (or wrap around to 0) index
first in, last out
i think he means the address mapped to the 0 position is the one being pushed? because that would be first in and first to be removed once array.length+1 is reached
Обсуждают сегодня