Skip to content

Commit

Permalink
Corner case
Browse files Browse the repository at this point in the history
  • Loading branch information
bohrium2b committed Oct 17, 2021
1 parent 2235a1f commit 5e13575
Show file tree
Hide file tree
Showing 26 changed files with 3 additions and 303 deletions.
3 changes: 3 additions & 0 deletions mergesort.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def sort(array: List[int]) -> List[int]:
Usage:
sort([1,3,9,4,8,5])
"""
# If array is of length 0
if len(array) == 0:
raise TypeError("Missing Argument")
if len(array) == 1:
# If array is only 1 element, it is sorted
return array
Expand Down
Empty file removed sort/db.sqlite3
Empty file.
22 changes: 0 additions & 22 deletions sort/manage.py

This file was deleted.

Empty file removed sort/mergesort/__init__.py
Empty file.
Binary file removed sort/mergesort/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file removed sort/mergesort/__pycache__/admin.cpython-38.pyc
Binary file not shown.
Binary file removed sort/mergesort/__pycache__/apps.cpython-38.pyc
Binary file not shown.
Binary file removed sort/mergesort/__pycache__/models.cpython-38.pyc
Binary file not shown.
3 changes: 0 additions & 3 deletions sort/mergesort/admin.py

This file was deleted.

6 changes: 0 additions & 6 deletions sort/mergesort/apps.py

This file was deleted.

81 changes: 0 additions & 81 deletions sort/mergesort/mergesort.py

This file was deleted.

Empty file.
Binary file not shown.
3 changes: 0 additions & 3 deletions sort/mergesort/models.py

This file was deleted.

3 changes: 0 additions & 3 deletions sort/mergesort/tests.py

This file was deleted.

Empty file removed sort/mergesort/urls.py
Empty file.
6 changes: 0 additions & 6 deletions sort/mergesort/views.py

This file was deleted.

Empty file removed sort/sort/__init__.py
Empty file.
Binary file removed sort/sort/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file removed sort/sort/__pycache__/settings.cpython-38.pyc
Binary file not shown.
Binary file removed sort/sort/__pycache__/urls.cpython-38.pyc
Binary file not shown.
Binary file removed sort/sort/__pycache__/wsgi.cpython-38.pyc
Binary file not shown.
16 changes: 0 additions & 16 deletions sort/sort/asgi.py

This file was deleted.

126 changes: 0 additions & 126 deletions sort/sort/settings.py

This file was deleted.

21 changes: 0 additions & 21 deletions sort/sort/urls.py

This file was deleted.

16 changes: 0 additions & 16 deletions sort/sort/wsgi.py

This file was deleted.

0 comments on commit 5e13575

Please sign in to comment.