summaryrefslogtreecommitdiff
path: root/progs/a359.py
blob: e984df97ab8a78e44ef5f29440ac9a8a9edd7765 (plain)
1
2
3
4
5
6
def get_noOfways(n):
    if (n == 0):
        return 0;
    if (n == 1):
        return 1; 
    return get_noOfways(n - 1) + get_noOfways(n - 2);