SHARE
TWEET

Untitled

a guest Dec 11th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while i != len(a):
  2.     if a[i] < b[j]:
  3.         i += 1
  4.     elif a[i] >= b[j]:
  5.         while j != len(b):
  6.             if a[i] == b[j]:
  7.                 c.append(a[i])
  8.                 i += 1
  9.                 break
  10.             else:
  11.                 j += 1
  12.         else:
  13.             i += 1
  14.             j = 0
  15. return c
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top