0 out of 464 challenges solved

Sum of Largest and Smallest in Array

Write a Python function `big_sum` that takes a list of integers as input and returns the sum of the largest and smallest values in the list.

#### Example Usage
```python [main.nopy]
print(big_sum([1, 2, 3]))  # Output: 4
print(big_sum([-1, 2, 3, 4]))  # Output: 3
print(big_sum([2, 3, 6]))  # Output: 8
```
def big_sum(nums):
    """
    Calculate the sum of the largest and smallest values in the list.

    Args:
        nums (list): A list of integers.

    Returns:
        int: The sum of the largest and smallest values.
    """
    # Placeholder for the solution
    pass