Skip to main content

cs_disc_928

#r/discussion

  • Discussion notes: link

Discussion 9/28

print("Hello world i am cool")
def max_product(s):
if s==[]:
return 1
else:
return max(max_product(s[2:])*s[0],max_product(s[1:])

max_product([10,3,1,9,2])

[[Sequences]] [[CS61A/misc/TREES]] [[tree_representation]]