4 lines
78 B
Python
4 lines
78 B
Python
def count(arr):
|
|
if not arr:
|
|
return 0
|
|
return 1 + count(arr[1:]) |