Delete Non-crossing-lines-to-connect-points-in-a-circle

This commit is contained in:
A Safari 2018-11-28 15:56:10 -05:00 committed by GitHub
parent 98db791d37
commit 1c29a455b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +0,0 @@
def count(n):
if (n & 1):
return 0
val = n // 2
dy_lst = [1 for i in range(val + 1)]
for i in range(2, val + 1):
dy_lst[i] = 0
for j in range(i):
dy_lst[i] += (dy_lst[j] * dy_lst[i - j - 1])
return dy_lst[val]