Skip to content

Merge sorted#9

Open
VidaMaleki wants to merge 2 commits intoada-c17:masterfrom
tetianazakipna:merge-sorted
Open

Merge sorted#9
VidaMaleki wants to merge 2 commits intoada-c17:masterfrom
tetianazakipna:merge-sorted

Conversation

@VidaMaleki
Copy link
Copy Markdown

please check merge sorted

Copy link
Copy Markdown

@tetianazakipna tetianazakipna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job, Vida!

def merge_sorted_lists(l1, l2):
pass
merged = l1 + l2
return sorted(merged) No newline at end of file
Copy link
Copy Markdown

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():
Copy link
Copy Markdown

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]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool assert

@tetianazakipna
Copy link
Copy Markdown

I accept this branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants