您的位置:首页 > 编程语言 > Go语言

Bag(from Algorithms Fourth Edition)

2018-03-03 03:16 218 查看
Each API for collection ADTs contains a no-argument constructor, a method to add an item to the collection , a method to test whether the collection is empty, and a method that returns the size of the collection.API for Bag

Bag 只能添加元素,不能删去已有的元素,可查看是否为空并且可以知道元素的个数。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Bag java Algorithms