Skip to content

Commit fad8404

Browse files
committed
Added homework 01 prompt and data file
1 parent 1c4c49a commit fad8404

File tree

3 files changed

+488
-8
lines changed

3 files changed

+488
-8
lines changed

Breakouts/Solutions/02_AdvancedDataStructures/breakout02_solutions.ipynb

Lines changed: 141 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@
276276
"slide_type": "fragment"
277277
}
278278
},
279-
"outputs": []
279+
"outputs": [],
280+
"prompt_number": 20
280281
},
281282
{
282283
"cell_type": "markdown",
@@ -302,7 +303,28 @@
302303
"slide_type": "fragment"
303304
}
304305
},
305-
"outputs": []
306+
"outputs": [
307+
{
308+
"output_type": "stream",
309+
"stream": "stdout",
310+
"text": [
311+
"('Aeroflot', 34, 'SVO', 5, 9.0)\n",
312+
"('American', 1, 'JFK', 12, 11.3)\n",
313+
"('Southwest', 23, 'SBA', 6, 12.5)\n",
314+
"('Southwest', 59, 'LAX', 11, 14.5)\n",
315+
"('Southwest', 145, 'DCA', 1, 6.0)\n",
316+
"('Southwest', 146, 'CDA', 1, 9.6)\n",
317+
"('SpamAir', 1, 'AUM', 42, 14.4)\n",
318+
"('USAirways', 8, 'MIA', 20, 13.1)\n",
319+
"('United', 2, 'LAX', 10, 12.5)\n",
320+
"('United', 31, 'IAD', 1, 7.1)\n",
321+
"('United', 46, 'LAX', 5, 6.5)\n",
322+
"('United', 302, 'LHR', 5, 6.5)\n",
323+
"('United', 2032, 'MIA', 21, 15.1)\n"
324+
]
325+
}
326+
],
327+
"prompt_number": 21
306328
},
307329
{
308330
"cell_type": "markdown",
@@ -341,7 +363,30 @@
341363
"slide_type": "fragment"
342364
}
343365
},
344-
"outputs": []
366+
"outputs": [
367+
{
368+
"output_type": "stream",
369+
"stream": "stdout",
370+
"text": [
371+
"Flight \tDestination\t\tGate\tTime\n",
372+
"-----------------------------------------------------\n",
373+
"Aeroflot 34\tMoscow \t5\t9.0\n",
374+
"American 1\tNew York City \t12\t11.3\n",
375+
"Southwest 23\tSanta Barbara \t6\t12.5\n",
376+
"Southwest 59\tLos Angeles \t11\t14.5\n",
377+
"Southwest 145\tWashington, D.C. \t1\t6.0\n",
378+
"Southwest 146\tChicago-Midway \t1\t9.6\n",
379+
"SpamAir 1\tAustin, Minnesota \t42\t14.4\n",
380+
"USAirways 8\tMiami \t20\t13.1\n",
381+
"United 2\tLos Angeles \t10\t12.5\n",
382+
"United 31\tDulles \t1\t7.1\n",
383+
"United 46\tLos Angeles \t5\t6.5\n",
384+
"United 302\tLondon-Heathrow \t5\t6.5\n",
385+
"United 2032\tMiami \t21\t15.1\n"
386+
]
387+
}
388+
],
389+
"prompt_number": 22
345390
},
346391
{
347392
"cell_type": "markdown",
@@ -369,7 +414,8 @@
369414
"slide_type": "fragment"
370415
}
371416
},
372-
"outputs": []
417+
"outputs": [],
418+
"prompt_number": 23
373419
},
374420
{
375421
"cell_type": "code",
@@ -383,7 +429,16 @@
383429
"slide_type": "skip"
384430
}
385431
},
386-
"outputs": []
432+
"outputs": [
433+
{
434+
"output_type": "stream",
435+
"stream": "stdout",
436+
"text": [
437+
"[('Aeroflot', 34, 'SVO', 5, 9.0)]\n"
438+
]
439+
}
440+
],
441+
"prompt_number": 24
387442
},
388443
{
389444
"cell_type": "markdown",
@@ -425,7 +480,8 @@
425480
"slide_type": "fragment"
426481
}
427482
},
428-
"outputs": []
483+
"outputs": [],
484+
"prompt_number": 26
429485
},
430486
{
431487
"cell_type": "markdown",
@@ -455,7 +511,30 @@
455511
"slide_type": "fragment"
456512
}
457513
},
458-
"outputs": []
514+
"outputs": [
515+
{
516+
"output_type": "stream",
517+
"stream": "stdout",
518+
"text": [
519+
"Flight \tDestination\t\tGate\tTime\n",
520+
"-----------------------------------------------------\n",
521+
"Southwest 145\tWashington, D.C. \t1\t6.0\n",
522+
"United 302\tLondon-Heathrow \t5\t6.5\n",
523+
"United 46\tLos Angeles \t5\t6.5\n",
524+
"United 31\tDulles \t1\t7.1\n",
525+
"Aeroflot 34\tMoscow \t5\t9.0\n",
526+
"Southwest 146\tChicago-Midway \t1\t9.6\n",
527+
"American 1\tNew York City \t12\t11.3\n",
528+
"United 2\tLos Angeles \t10\t12.5\n",
529+
"Southwest 23\tSanta Barbara \t6\t12.5\n",
530+
"USAirways 8\tMiami \t20\t13.1\n",
531+
"SpamAir 1\tAustin, Minnesota \t42\t14.4\n",
532+
"Southwest 59\tLos Angeles \t11\t14.5\n",
533+
"United 2032\tMiami \t21\t15.1\n"
534+
]
535+
}
536+
],
537+
"prompt_number": 27
459538
},
460539
{
461540
"cell_type": "markdown",
@@ -488,7 +567,30 @@
488567
"slide_type": "fragment"
489568
}
490569
},
491-
"outputs": []
570+
"outputs": [
571+
{
572+
"output_type": "stream",
573+
"stream": "stdout",
574+
"text": [
575+
"Flight \tDestination\t\tGate\tTime\n",
576+
"-----------------------------------------------------\n",
577+
"Southwest 145\tWashington, D.C. \t1\t6.0\n",
578+
"United 46\tLos Angeles \t5\t6.5\n",
579+
"United 302\tLondon-Heathrow \t5\t6.5\n",
580+
"United 31\tDulles \t1\t7.1\n",
581+
"Aeroflot 34\tMoscow \t5\t9.0\n",
582+
"Southwest 146\tChicago-Midway \t1\t9.6\n",
583+
"American 1\tNew York City \t12\t11.3\n",
584+
"Southwest 23\tSanta Barbara \t6\t12.5\n",
585+
"United 2\tLos Angeles \t10\t12.5\n",
586+
"USAirways 8\tMiami \t20\t13.1\n",
587+
"SpamAir 1\tAustin, Minnesota \t42\t14.4\n",
588+
"Southwest 59\tLos Angeles \t11\t14.5\n",
589+
"United 2032\tMiami \t21\t15.1\n"
590+
]
591+
}
592+
],
593+
"prompt_number": 28
492594
},
493595
{
494596
"cell_type": "markdown",
@@ -513,6 +615,37 @@
513615
],
514616
"language": "python",
515617
"metadata": {},
618+
"outputs": [
619+
{
620+
"output_type": "stream",
621+
"stream": "stdout",
622+
"text": [
623+
"Flight Destination Gate Time \n",
624+
"-----------------------------------------------------\n",
625+
"Southwest 145 Washington, D.C. 1 6.0 \n",
626+
"United 46 Los Angeles 5 6.5 \n",
627+
"United 302 London-Heathrow 5 6.5 \n",
628+
"United 31 Dulles 1 7.1 \n",
629+
"Aeroflot 34 Moscow 5 9.0 \n",
630+
"Southwest 146 Chicago-Midway 1 9.6 \n",
631+
"American 1 New York City 12 11.3 \n",
632+
"Southwest 23 Santa Barbara 6 12.5 \n",
633+
"United 2 Los Angeles 10 12.5 \n",
634+
"USAirways 8 Miami 20 13.1 \n",
635+
"SpamAir 1 Austin, Minnesota 42 14.4 \n",
636+
"Southwest 59 Los Angeles 11 14.5 \n",
637+
"United 2032 Miami 21 15.1 \n"
638+
]
639+
}
640+
],
641+
"prompt_number": 29
642+
},
643+
{
644+
"cell_type": "code",
645+
"collapsed": false,
646+
"input": [],
647+
"language": "python",
648+
"metadata": {},
516649
"outputs": []
517650
}
518651
],

Homeworks/Homework_01/Homework_01.pdf

252 KB
Binary file not shown.

0 commit comments

Comments
 (0)