0 out of 464 challenges solved

Check Perfect Square

Write a Python function `is_perfect_square(n: int) -> bool` that determines whether a given integer `n` is a perfect square. A number is a perfect square if it can be expressed as the square of an integer.

#### Example Usage:
```python [main.nopy]
print(is_perfect_square(16))  # Output: True
print(is_perfect_square(14))  # Output: False
print(is_perfect_square(1))   # Output: True
print(is_perfect_square(0))   # Output: True
```

#### Constraints:
- The input `n` will be a non-negative integer.
- The function should return `True` if `n` is a perfect square, otherwise `False`.
def is_perfect_square(n: int) -> bool:
    """
    Determine if the given number is a perfect square.

    Args:
    n (int): The number to check.

    Returns:
    bool: True if n is a perfect square, False otherwise.
    """
    # Placeholder for the solution
    pass