Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RemoveDuplicatesFromSortedArray is not working as expected and output shows extra element in an array #312

Open
ghost opened this issue Jan 13, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 13, 2021

LeetCode-Swift/Array/RemoveDuplicatesFromSortedArray.swift
The solution to the above problem doesn't seems to be correct.

e.g
Input: [1,1,2,2,5,5,6,8,9,9,9]
Program output in Leetcode console: [1,2,5,6,8,9]
Program Output in Xcode Playground : [1, 2, 5, 6, 8, 9, 6, 8, 9, 9, 9]
Expected Output is: [1,2,5,6,8,9]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants