Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. # E. Given two lists sorted in increasing order, create and return a merged
  2. # list of all the elements in sorted order. You may modify the passed in lists.
  3. # Ideally, the solution should work in "linear" time, making a single
  4. # pass of both lists.
  5. def linear_merge(list1, list2):
  6. # +++your code here+++
  7. return sorted(list1+list2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement