a guest Mar 18th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
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