-
Notifications
You must be signed in to change notification settings - Fork 21
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
Merge sorted #9
base: master
Are you sure you want to change the base?
Merge sorted #9
Conversation
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.
Good job, Vida!
@@ -1,2 +1,3 @@ | |||
def merge_sorted_lists(l1, l2): | |||
pass | |||
merged = l1 + l2 | |||
return sorted(merged) |
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.
smart decision!
assert answer == [1, 2] | ||
|
||
|
||
def test_for_2_and_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.
Smart test
answer = merge_sorted_lists(l1, l2) | ||
|
||
# Assert | ||
assert answer == [1, 2, 3, 4, 5, 6] |
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.
cool assert
I accept this branch |
please check merge sorted