Skip to content

Commit d765545

Browse files
committed
edited for testing
1 parent a6e29a6 commit d765545

File tree

1 file changed

+46
-25
lines changed

1 file changed

+46
-25
lines changed

data_structures/4_HashTable_2_Collisions/4_hash_table_collision_handling.ipynb

Lines changed: 46 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 56,
5+
"execution_count": 20,
66
"metadata": {},
77
"outputs": [],
88
"source": [
@@ -28,7 +28,7 @@
2828
},
2929
{
3030
"cell_type": "code",
31-
"execution_count": 51,
31+
"execution_count": 21,
3232
"metadata": {},
3333
"outputs": [
3434
{
@@ -37,7 +37,7 @@
3737
"9"
3838
]
3939
},
40-
"execution_count": 51,
40+
"execution_count": 21,
4141
"metadata": {},
4242
"output_type": "execute_result"
4343
}
@@ -49,7 +49,7 @@
4949
},
5050
{
5151
"cell_type": "code",
52-
"execution_count": 12,
52+
"execution_count": 22,
5353
"metadata": {
5454
"scrolled": false
5555
},
@@ -60,7 +60,7 @@
6060
"9"
6161
]
6262
},
63-
"execution_count": 12,
63+
"execution_count": 22,
6464
"metadata": {},
6565
"output_type": "execute_result"
6666
}
@@ -71,7 +71,7 @@
7171
},
7272
{
7373
"cell_type": "code",
74-
"execution_count": 54,
74+
"execution_count": 23,
7575
"metadata": {},
7676
"outputs": [],
7777
"source": [
@@ -83,7 +83,7 @@
8383
},
8484
{
8585
"cell_type": "code",
86-
"execution_count": 55,
86+
"execution_count": 24,
8787
"metadata": {},
8888
"outputs": [
8989
{
@@ -92,7 +92,7 @@
9292
"459"
9393
]
9494
},
95-
"execution_count": 55,
95+
"execution_count": 24,
9696
"metadata": {},
9797
"output_type": "execute_result"
9898
}
@@ -110,7 +110,7 @@
110110
},
111111
{
112112
"cell_type": "code",
113-
"execution_count": 86,
113+
"execution_count": 25,
114114
"metadata": {},
115115
"outputs": [],
116116
"source": [
@@ -152,7 +152,7 @@
152152
},
153153
{
154154
"cell_type": "code",
155-
"execution_count": 87,
155+
"execution_count": 26,
156156
"metadata": {},
157157
"outputs": [],
158158
"source": [
@@ -165,7 +165,7 @@
165165
},
166166
{
167167
"cell_type": "code",
168-
"execution_count": 88,
168+
"execution_count": 27,
169169
"metadata": {
170170
"scrolled": true
171171
},
@@ -176,7 +176,7 @@
176176
"310"
177177
]
178178
},
179-
"execution_count": 88,
179+
"execution_count": 27,
180180
"metadata": {},
181181
"output_type": "execute_result"
182182
}
@@ -187,7 +187,7 @@
187187
},
188188
{
189189
"cell_type": "code",
190-
"execution_count": 89,
190+
"execution_count": 28,
191191
"metadata": {
192192
"scrolled": true
193193
},
@@ -198,7 +198,7 @@
198198
"63457"
199199
]
200200
},
201-
"execution_count": 89,
201+
"execution_count": 28,
202202
"metadata": {},
203203
"output_type": "execute_result"
204204
}
@@ -209,7 +209,7 @@
209209
},
210210
{
211211
"cell_type": "code",
212-
"execution_count": 90,
212+
"execution_count": 29,
213213
"metadata": {},
214214
"outputs": [
215215
{
@@ -227,7 +227,7 @@
227227
" [('march 6', 310), ('march 17', 63457)]]"
228228
]
229229
},
230-
"execution_count": 90,
230+
"execution_count": 29,
231231
"metadata": {},
232232
"output_type": "execute_result"
233233
}
@@ -238,7 +238,7 @@
238238
},
239239
{
240240
"cell_type": "code",
241-
"execution_count": 91,
241+
"execution_count": 30,
242242
"metadata": {
243243
"scrolled": true
244244
},
@@ -249,7 +249,7 @@
249249
},
250250
{
251251
"cell_type": "code",
252-
"execution_count": 92,
252+
"execution_count": 31,
253253
"metadata": {},
254254
"outputs": [
255255
{
@@ -267,7 +267,7 @@
267267
" [('march 6', 11), ('march 17', 63457)]]"
268268
]
269269
},
270-
"execution_count": 92,
270+
"execution_count": 31,
271271
"metadata": {},
272272
"output_type": "execute_result"
273273
}
@@ -278,16 +278,16 @@
278278
},
279279
{
280280
"cell_type": "code",
281-
"execution_count": 68,
281+
"execution_count": 32,
282282
"metadata": {},
283283
"outputs": [
284284
{
285285
"data": {
286286
"text/plain": [
287-
"310"
287+
"11"
288288
]
289289
},
290-
"execution_count": 68,
290+
"execution_count": 32,
291291
"metadata": {},
292292
"output_type": "execute_result"
293293
}
@@ -298,7 +298,7 @@
298298
},
299299
{
300300
"cell_type": "code",
301-
"execution_count": 48,
301+
"execution_count": 36,
302302
"metadata": {},
303303
"outputs": [
304304
{
@@ -310,7 +310,28 @@
310310
}
311311
],
312312
"source": [
313-
"del t[\"march 6\"]"
313+
"del t[\"march 6\"]\n",
314+
"del t[\"march 17\"]"
315+
]
316+
},
317+
{
318+
"cell_type": "code",
319+
"execution_count": 37,
320+
"metadata": {},
321+
"outputs": [
322+
{
323+
"data": {
324+
"text/plain": [
325+
"[[('march 7', 420)], [('march 8', 67)], [], [], [], [], [], [], [], []]"
326+
]
327+
},
328+
"execution_count": 37,
329+
"metadata": {},
330+
"output_type": "execute_result"
331+
}
332+
],
333+
"source": [
334+
"t.arr"
314335
]
315336
}
316337
],
@@ -330,7 +351,7 @@
330351
"name": "python",
331352
"nbconvert_exporter": "python",
332353
"pygments_lexer": "ipython3",
333-
"version": "3.7.3"
354+
"version": "3.9.5"
334355
}
335356
},
336357
"nbformat": 4,

0 commit comments

Comments
 (0)