0 out of 464 challenges solved

Largest Number from Digits

Write a Python function `find_largest_number(digits)` that takes a list of single-digit integers and returns the largest number that can be formed by arranging those digits.

#### Example Usage
```python [main.nopy]
find_largest_number([1, 2, 3])  # Output: 321
find_largest_number([4, 5, 6, 1])  # Output: 6541
find_largest_number([1, 2, 3, 9])  # Output: 9321
```

#### Constraints
- The input list will only contain integers between 0 and 9.
- The input list will have at least one element.
def find_largest_number(digits):
    """
    Given a list of single-digit integers, return the largest number that can be formed by arranging them.

    Args:
    digits (list): A list of single-digit integers.

    Returns:
    int: The largest number that can be formed.
    """
    # Sort the digits in descending order
    # Combine the sorted digits into a single number
    pass  # Replace this with your implementation