|
12 | 12 |
|
13 | 13 | <meta name="twitter:card" content="summary"/> |
14 | 14 | <meta name="twitter:title" content="数据结构之容器"/> |
15 | | -<meta name="twitter:description" content="数据结构之容器 一、概述 1.什么是数据结构中的容器? 容器是一种把多个元素组织在s一起的数据结构,也可以理解为一种可以包含其他类型对象作为元素的 |
| 15 | +<meta name="twitter:description" content="数据结构之容器 一、概述 1.什么是数据结构中的容器? 容器是一种把多个元素组织在一起的数据结构,也可以理解为一种可以包含其他类型对象作为元素的 |
16 | 16 | 的对象。容器是仅仅用来存放数据的,本身没有取出元素这种能力,大多数情况下是通过可迭代对象来 |
17 | 17 | 操作容器 |
18 | 18 | 容器这种数据结构在各种编程语言中都有相应的实现,比如我们经常会比较熟悉的C++的标准模板库 |
|
35 | 35 | 所取代 |
36 | 36 |
|
37 | 37 | 接口的实现如下表所示 |
38 | | - ImplementationsHash TableResizable ArrayBalanced TreeLinked ListHash Table + Linked ListInterfacesSetHashSetTreeSetLinkedHashSetListArrayListLinkedListDequeArrayDequeLinkedListMapHashMapTreeMapLinkedHashMap (3) 迭代器"/> |
| 38 | + ImplementationsHash TableResizable ArrayBalanced TreeLinked ListHash Table + Linked ListInterfacesSetHashSetTreeSetLinkedHashSetListArrayListLinkedListDequeArrayDequeLinkedListMapHashMapTreeMapLinkedHashMap > (3) 迭代器"/> |
39 | 39 |
|
40 | 40 | <meta property="og:title" content="数据结构之容器" /> |
41 | | -<meta property="og:description" content="数据结构之容器 一、概述 1.什么是数据结构中的容器? 容器是一种把多个元素组织在s一起的数据结构,也可以理解为一种可以包含其他类型对象作为元素的 |
| 41 | +<meta property="og:description" content="数据结构之容器 一、概述 1.什么是数据结构中的容器? 容器是一种把多个元素组织在一起的数据结构,也可以理解为一种可以包含其他类型对象作为元素的 |
42 | 42 | 的对象。容器是仅仅用来存放数据的,本身没有取出元素这种能力,大多数情况下是通过可迭代对象来 |
43 | 43 | 操作容器 |
44 | 44 | 容器这种数据结构在各种编程语言中都有相应的实现,比如我们经常会比较熟悉的C++的标准模板库 |
|
61 | 61 | 所取代 |
62 | 62 |
|
63 | 63 | 接口的实现如下表所示 |
64 | | - ImplementationsHash TableResizable ArrayBalanced TreeLinked ListHash Table + Linked ListInterfacesSetHashSetTreeSetLinkedHashSetListArrayListLinkedListDequeArrayDequeLinkedListMapHashMapTreeMapLinkedHashMap (3) 迭代器" /> |
| 64 | + ImplementationsHash TableResizable ArrayBalanced TreeLinked ListHash Table + Linked ListInterfacesSetHashSetTreeSetLinkedHashSetListArrayListLinkedListDequeArrayDequeLinkedListMapHashMapTreeMapLinkedHashMap > (3) 迭代器" /> |
65 | 65 | <meta property="og:type" content="article" /> |
66 | 66 | <meta property="og:url" content="https://sin-coder.github.io/datastructure/container/" /> |
67 | 67 | <meta property="article:published_time" content="2019-11-28T17:01:10+08:00" /> |
@@ -121,7 +121,7 @@ <h3 id="一-概述">一、概述</h3> |
121 | 121 | <h4 id="1-什么是数据结构中的容器">1.什么是数据结构中的容器?</h4> |
122 | 122 |
|
123 | 123 | <blockquote> |
124 | | -<p>容器是一种把多个元素组织在s一起的数据结构,也可以理解为一种可以包含其他类型对象作为元素的</p> |
| 124 | +<p>容器是一种把多个元素组织在一起的数据结构,也可以理解为一种可以包含其他类型对象作为元素的</p> |
125 | 125 | </blockquote> |
126 | 126 |
|
127 | 127 | <p>的对象。容器是仅仅用来存放数据的,本身没有取出元素这种能力,大多数情况下是通过可迭代对象来</p> |
@@ -181,17 +181,16 @@ <h4 id="2-java集合框架简介">2.Java集合框架简介</h4> |
181 | 181 |
|
182 | 182 | <p>所取代</p> |
183 | 183 |
|
184 | | -<p><a href="https://imgchr.com/i/154e3T"><img src="https://s2.ax1x.com/2020/02/10/154e3T.png" alt="154e3T.png" style="zoom:80%;" /></a></p> |
| 184 | +<p><a href="https://imgchr.com/i/154e3T"><img src="https://s2.ax1x.com/2020/02/10/154e3T.png" alt="154e3T.png" style="zoom: 50%;" /></a></p> |
185 | 185 |
|
186 | 186 | <blockquote> |
187 | 187 | <p>接口的实现如下表所示</p> |
188 | 188 | </blockquote> |
189 | 189 |
|
190 | | -<table align="center"><tr><td colspan="2" rowspan="2" align="center" border="0"></td><th colspan="5" align="center">Implementations</th></tr><tr><th>Hash Table</th><th>Resizable Array</th><th>Balanced Tree</th><th>Linked List</th><th>Hash Table + Linked List</th></tr><tr><th rowspan="4">Interfaces</th><th>Set</th><td><tt>HashSet</tt></td><td></td><td><tt>TreeSet</tt></td><td></td><td><tt>LinkedHashSet</tt></td></tr><tr><th>List</th><td></td><td><tt>ArrayList</tt></td><td></td><td><tt>LinkedList</tt></td><td></td></tr><tr><th>Deque</th><td></td><td><tt>ArrayDeque</tt></td><td></td><td><tt>LinkedList</tt></td><td></td></tr><tr><th>Map</th><td><tt>HashMap</tt></td><td></td><td><tt>TreeMap</tt></td><td></td><td><tt>LinkedHashMap</tt></td></tr></table> |
| 190 | +<p><table align="center"><tr><td colspan="2" rowspan="2" align="center" border="0"></td><th colspan="5" align="center">Implementations</th></tr><tr><th>Hash Table</th><th>Resizable Array</th><th>Balanced Tree</th><th>Linked List</th><th>Hash Table + Linked List</th></tr><tr><th rowspan="4">Interfaces</th><th>Set</th><td><tt>HashSet</tt></td><td></td><td><tt>TreeSet</tt></td><td></td><td><tt>LinkedHashSet</tt></td></tr><tr><th>List</th><td></td><td><tt>ArrayList</tt></td><td></td><td><tt>LinkedList</tt></td><td></td></tr><tr><th>Deque</th><td></td><td><tt>ArrayDeque</tt></td><td></td><td><tt>LinkedList</tt></td><td></td></tr><tr><th>Map</th><td><tt>HashMap</tt></td><td></td><td><tt>TreeMap</tt></td><td></td><td><tt>LinkedHashMap</tt></td></tr></table> |
| 191 | +> <strong>(3) 迭代器</strong></p> |
191 | 192 |
|
192 | 193 | <blockquote> |
193 | | -<p><strong>(3) 迭代器</strong></p> |
194 | | - |
195 | 194 | <p>迭代器为我们提供了遍历容器中元素的方法,它只能通过容器本身来得到,迭代器是我们更加方便地去操作</p> |
196 | 195 | </blockquote> |
197 | 196 |
|
|
0 commit comments