0 out of 464 challenges solved

Next Smallest Palindrome

Write a function `next_smallest_palindrome(num: int) -> int` that takes an integer `num` as input and returns the next smallest palindrome greater than `num`. A palindrome is a number that reads the same backward as forward.

#### Example Usage
```python [main.nopy]
next_smallest_palindrome(99)  # Output: 101
next_smallest_palindrome(1221)  # Output: 1331
next_smallest_palindrome(120)  # Output: 121
```
def next_smallest_palindrome(num: int) -> int:
    """
    Find the next smallest palindrome greater than the given number.

    Args:
        num (int): The input number.

    Returns:
        int: The next smallest palindrome.
    """
    # Placeholder for the solution
    pass