Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def bepaal_maximum(lijst):
- if len(lijst) < 2:
- return lijst[0]
- helft = len(lijst)//2
- links = bepaal_maximum(lijst[:helft])
- rechts = bepaal_maximum(lijst[helft:])
- if links >= rechts:
- return links
- return rechts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement