Solutions for Hopping Rabbit

    • @GarretVam
    • @mason, submitted in Python 2, achived 100% score
    def solve(dist):
        if dist < 0:
            return 0
        if dist == 0:
            return 1
        return (solve(dist-1) +
                solve(dist-2) +
                solve(dist-3))
    
    
    • @GarretVam
    • @mason, submitted in Python 2, achived 100% score
    def solve(dist):
        if dist < 0:
            return 0
        if dist == 0:
            return 1
        return (solve(dist-1) +
                solve(dist-2) +
                solve(dist-3))