-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Кравченко 7 #56
base: master
Are you sure you want to change the base?
Кравченко 7 #56
Conversation
@@ -0,0 +1,29 @@ | |||
from random import randint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
на большом файле stack overflow
File "file.py", line 12, in quick_sort
quick_sort(a, q + 1, r)
File "file.py", line 12, in quick_sort
quick_sort(a, q + 1, r)
File "file.py", line 12, in quick_sort
quick_sort(a, q + 1, r)
File "file.py", line 12, in quick_sort
quick_sort(a, q + 1, r)
File "file.py", line 12, in quick_sort
quick_sort(a, q + 1, r)
File "file.py", line 12, in quick_sort
quick_sort(a, q + 1, r)
File "file.py", line 12, in quick_sort
quick_sort(a, q + 1, r)
File "file.py", line 12, in quick_sort
quick_sort(a, q + 1, r)
File "file.py", line 12, in quick_sort
quick_sort(a, q + 1, r)
File "file.py", line 12, in quick_sort
quick_sort(a, q + 1, r)
File "file.py", line 10, in quick_sort
q = randomised_partition(a, p, r)
File "file.py", line 16, in randomised_partition
rand = randint(p, r)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/random.py", line 241, in randint
return self.randrange(a, b+1)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/random.py", line 184, in randrange
istart = int(start)
RuntimeError: maximum recursion depth exceeded while calling a Python object
Про PR понял, вижу, что сделано давно. Проблемы надо поправить. |
В четвёртой лабе вроде поправил. По крайней мере, у меня не виснет на 1000000 рандомных числах |
В пятой лабе (ну у меня под номером шесть) тоже исправлены ошибки |
if i == j == (len(string) - 1) // 2: | ||
res2 = string[i] | ||
continue | ||
if helping_matrix[i][j] == 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
elif
прошу прощения, поправил |
Сделал 12. |
12+ |
13+, но док ещё нужно было добавить к классу с принципиальным описанием структуры, а не методов |
Спасибо. Я постараюсь ещё доделать седьмую лабу! |
Похоже, я случайно не отправил pull request. Но задания сделаны вовремя