Daily challenge for 2025-01-30
30. Remove Duplicates from Sorted Array
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
Run this challenge interactively in Python or JavaScript when the app loads.