使用数组和链表实现背包、队列、栈3种集合类数据结构 | GCidea's blog
目录

API
背包

队列

栈

实现
背包
1 | public class Bag<Item> implements Iterable<Item> { |
队列
1 | public class Queue<Item> implements Iterable<Item> { |
栈
1.动态调整数组大小的实现
1 |