Advertisement
Guest User

aesthetic

a guest
Mar 18th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. def bepaal_maximum(lijst):
  2. if len(lijst) < 2:
  3. return lijst[0]
  4. helft = len(lijst)//2
  5. links = bepaal_maximum(lijst[:helft])
  6. rechts = bepaal_maximum(lijst[helft:])
  7. if links >= rechts:
  8. return links
  9. return rechts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement