ashish-r / Fizz-Buzz

A collection of come cool Fizz Buzz programs in your favorite programming language
MIT License
10 stars 54 forks source link

Create Remove Duplicates from Sorted Array #65

Closed harshita-sharma11 closed 4 years ago

harshita-sharma11 commented 4 years ago

Given a sorted array nums, remove the duplicates in-place such that each element appears only once and returns the new length.

Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.

ashish-r commented 4 years ago

@harshita-sharma11 You can only contribute programs for the FizzBuzz problem. Closing this PR.