0 out of 464 challenges solved

Remove Duplicates from Lists

Write a Python function `remove_duplicates` that takes a list of integers and returns a new list with all duplicate numbers removed. The function should preserve the order of the first occurrence of each number.

#### Example Usage
```python [main.nopy]
remove_duplicates([1, 2, 3, 2, 3, 4, 5])
# Output: [1, 2, 3, 4, 5]

remove_duplicates([1, 2, 3, 4, 5])
# Output: [1, 2, 3, 4, 5]

remove_duplicates([1, 1, 1, 1])
# Output: [1]
```
def remove_duplicates(nums):
    """
    Remove duplicate numbers from the given list, preserving the order of first occurrences.

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

    Returns:
        list: A list with duplicates removed.
    """
    # Placeholder for the solution
    pass