Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def solution(A, B):
- # write your code in Python 2.7
- pre = -1
- N = len(A)
- ans=0
- for i in xrange(N):
- if A[i] > pre:
- ans+=1
- pre = B[i]
- return ans
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement