Jump to content

Solve hanging lantern problem: Difference between revisions

m
Fix format
m (Fix format)
Line 636:
 
=={{header|Python}}==
===Recursive version===
<lang python>
def getLantern(arr):
Line 655:
print(getLantern(a))
</lang>
===Math solution===
<lang python>
import math
43

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.