Stepping Stones Game

  • + 3 comments
    def solve(n):
        # Write your code here
        delta = math.sqrt(1+8*n) - 1
        if delta%2: 
            return "Better Luck Next Time"
        return f"Go On Bob {int(delta//2)}"