# leetle

## 30. Remove Duplicates from Sorted Array

80%

Write a function `solve` that removes duplicates from a sorted array in-place, and return the new length.

**Example:** `Input: [1,1,2]` `Output: 2`

Make sure you `return` your solution, don't print!

```python
def solve(nums):
    pass
```
