Map
1 | //save without order |
Set
1 | //save without order |
List
1 | LinkedList<Integer> linkedList = new LinkedList<>(); |
Queue
1 | //this is a max heap |
求和、排序
1 | List<Integer> values = new ArrayList<>(); |
1 | //save without order |
1 | //save without order |
1 | LinkedList<Integer> linkedList = new LinkedList<>(); |
1 | //this is a max heap |
1 | List<Integer> values = new ArrayList<>(); |