Commit Graph

7 Commits

Author SHA1 Message Date
520dd9d52e addition: added pop_back, remove_at, pop_front
Same thing as with addtition, not tested and decided O(n)
2026-04-15 07:15:35 -06:00
fa0d09c3d7 addition: insert, push_back and push_front
Decided that push front and insert will be O(n) because it moves
everything one space ahead, could do something like a buffer ring but i
think is too much, maybe in the future i do change it but i'm not sure,
for now it just moves everything, also, i havne't tested them and i'm
not sure the for loop meant for moving everything actually works.
2026-04-15 06:50:04 -06:00
4ea062fd60 addition/refactor: Made ADT design and added grow/shrink
So, added private functions made to grow and shrink the array in a
multiple of 2, 2 as a factro is fine, at least that is Rust does it that
way. Also changed the design to ADT, forgot i liked that, probably will
be changing that to apply also to my Arena implementation, i will see if
fits --probably--.
2026-04-14 20:30:02 -06:00
cb78e9467b addition: size, is empty and capacity 2026-04-14 19:38:56 -06:00
f6fedcb9c2 addition: destroy and clear 2026-04-14 19:33:15 -06:00
39022d53ff addition: Added basic header and structure 2026-04-13 17:55:45 -06:00
12197bfbbd Initial commit 2026-04-13 11:16:58 -06:00