Skip to content

Commit 695c0e6

Browse files
add file Solution
1 parent 7d353b8 commit 695c0e6

File tree

4 files changed

+589
-29
lines changed

4 files changed

+589
-29
lines changed

data_structures/4_HashTable_2_Collisions/4_hash_table_collision_handling.ipynb

Lines changed: 34 additions & 29 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": 1,
66
"metadata": {},
77
"outputs": [],
88
"source": [
@@ -28,7 +28,7 @@
2828
},
2929
{
3030
"cell_type": "code",
31-
"execution_count": 51,
31+
"execution_count": 2,
3232
"metadata": {},
3333
"outputs": [
3434
{
@@ -37,7 +37,7 @@
3737
"9"
3838
]
3939
},
40-
"execution_count": 51,
40+
"execution_count": 2,
4141
"metadata": {},
4242
"output_type": "execute_result"
4343
}
@@ -49,18 +49,16 @@
4949
},
5050
{
5151
"cell_type": "code",
52-
"execution_count": 12,
53-
"metadata": {
54-
"scrolled": false
55-
},
52+
"execution_count": 3,
53+
"metadata": {},
5654
"outputs": [
5755
{
5856
"data": {
5957
"text/plain": [
6058
"9"
6159
]
6260
},
63-
"execution_count": 12,
61+
"execution_count": 3,
6462
"metadata": {},
6563
"output_type": "execute_result"
6664
}
@@ -71,7 +69,7 @@
7169
},
7270
{
7371
"cell_type": "code",
74-
"execution_count": 54,
72+
"execution_count": 4,
7573
"metadata": {},
7674
"outputs": [],
7775
"source": [
@@ -83,7 +81,7 @@
8381
},
8482
{
8583
"cell_type": "code",
86-
"execution_count": 55,
84+
"execution_count": 5,
8785
"metadata": {},
8886
"outputs": [
8987
{
@@ -92,7 +90,7 @@
9290
"459"
9391
]
9492
},
95-
"execution_count": 55,
93+
"execution_count": 5,
9694
"metadata": {},
9795
"output_type": "execute_result"
9896
}
@@ -110,7 +108,7 @@
110108
},
111109
{
112110
"cell_type": "code",
113-
"execution_count": 86,
111+
"execution_count": 6,
114112
"metadata": {},
115113
"outputs": [],
116114
"source": [
@@ -152,7 +150,7 @@
152150
},
153151
{
154152
"cell_type": "code",
155-
"execution_count": 87,
153+
"execution_count": 7,
156154
"metadata": {},
157155
"outputs": [],
158156
"source": [
@@ -165,7 +163,7 @@
165163
},
166164
{
167165
"cell_type": "code",
168-
"execution_count": 88,
166+
"execution_count": 8,
169167
"metadata": {
170168
"scrolled": true
171169
},
@@ -176,7 +174,7 @@
176174
"310"
177175
]
178176
},
179-
"execution_count": 88,
177+
"execution_count": 8,
180178
"metadata": {},
181179
"output_type": "execute_result"
182180
}
@@ -187,7 +185,7 @@
187185
},
188186
{
189187
"cell_type": "code",
190-
"execution_count": 89,
188+
"execution_count": 9,
191189
"metadata": {
192190
"scrolled": true
193191
},
@@ -198,7 +196,7 @@
198196
"63457"
199197
]
200198
},
201-
"execution_count": 89,
199+
"execution_count": 9,
202200
"metadata": {},
203201
"output_type": "execute_result"
204202
}
@@ -209,7 +207,7 @@
209207
},
210208
{
211209
"cell_type": "code",
212-
"execution_count": 90,
210+
"execution_count": 10,
213211
"metadata": {},
214212
"outputs": [
215213
{
@@ -227,7 +225,7 @@
227225
" [('march 6', 310), ('march 17', 63457)]]"
228226
]
229227
},
230-
"execution_count": 90,
228+
"execution_count": 10,
231229
"metadata": {},
232230
"output_type": "execute_result"
233231
}
@@ -238,7 +236,7 @@
238236
},
239237
{
240238
"cell_type": "code",
241-
"execution_count": 91,
239+
"execution_count": 11,
242240
"metadata": {
243241
"scrolled": true
244242
},
@@ -249,7 +247,7 @@
249247
},
250248
{
251249
"cell_type": "code",
252-
"execution_count": 92,
250+
"execution_count": 12,
253251
"metadata": {},
254252
"outputs": [
255253
{
@@ -267,7 +265,7 @@
267265
" [('march 6', 11), ('march 17', 63457)]]"
268266
]
269267
},
270-
"execution_count": 92,
268+
"execution_count": 12,
271269
"metadata": {},
272270
"output_type": "execute_result"
273271
}
@@ -278,16 +276,16 @@
278276
},
279277
{
280278
"cell_type": "code",
281-
"execution_count": 68,
279+
"execution_count": 13,
282280
"metadata": {},
283281
"outputs": [
284282
{
285283
"data": {
286284
"text/plain": [
287-
"310"
285+
"11"
288286
]
289287
},
290-
"execution_count": 68,
288+
"execution_count": 13,
291289
"metadata": {},
292290
"output_type": "execute_result"
293291
}
@@ -298,7 +296,7 @@
298296
},
299297
{
300298
"cell_type": "code",
301-
"execution_count": 48,
299+
"execution_count": 14,
302300
"metadata": {},
303301
"outputs": [
304302
{
@@ -312,11 +310,18 @@
312310
"source": [
313311
"del t[\"march 6\"]"
314312
]
313+
},
314+
{
315+
"cell_type": "code",
316+
"execution_count": null,
317+
"metadata": {},
318+
"outputs": [],
319+
"source": []
315320
}
316321
],
317322
"metadata": {
318323
"kernelspec": {
319-
"display_name": "Python 3",
324+
"display_name": "Python 3 (ipykernel)",
320325
"language": "python",
321326
"name": "python3"
322327
},
@@ -330,9 +335,9 @@
330335
"name": "python",
331336
"nbconvert_exporter": "python",
332337
"pygments_lexer": "ipython3",
333-
"version": "3.7.3"
338+
"version": "3.10.4"
334339
}
335340
},
336341
"nbformat": 4,
337-
"nbformat_minor": 2
342+
"nbformat_minor": 4
338343
}

0 commit comments

Comments
 (0)