-
Notifications
You must be signed in to change notification settings - Fork 0
Lesson07 #7
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
base: master
Are you sure you want to change the base?
Lesson07 #7
Conversation
Dzhoker1
left a comment
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.
Оставил комментарии по коду
|
|
||
|
|
||
| import random | ||
| array = [random.randint(-100, 100) for _ in range(10)] |
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.
"на промежутке [-100; 100)"
У вас 100 входит.
| def sort_(array): | ||
| n = 1 | ||
| while n < len(array): | ||
| for i in range(len(array) - n): |
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.
👍
| import random | ||
|
|
||
|
|
||
| array = [float('%.2f'%(random.uniform(0, 49))) for _ in range(10)] |
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.
random.uniform(0, 50)
| for i in range(it1 + it2): | ||
| a[left + i] = result[i] | ||
|
|
||
| def mergeSort(a): |
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.
Забавно, когда студент внезапно забывает Python Style и именно в этой задачи начинает использовать camelCase.
Алгоритм принимается 👍
| #array = [6, 0, 3, 9, 4, 4, 4, 4, 5] | ||
|
|
||
| for inx_i,i in enumerate(array): | ||
| count_l = 0; count_g = 0; count_e = 0; |
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.
Это что за финт ушами? JS? C++?
Все сделал