SarthakKeshari / CPP-Questions-and-Solutions

This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
MIT License
47 stars 132 forks source link

Create RemoveDuplicateFromSortedArray.cpp #394

Closed AnkitBhujeja closed 2 years ago

AnkitBhujeja commented 2 years ago

Issue Id you have worked upon -

Leetcode

Briefly explain your program logic -

I used two pointers i.e slow pointer and fast pointer for tracing the array. Floyd Slow and fast pointer algorithm

Screenshots(Attach 2 screenshots of your own input and output) -

Attach here

Screenshot (1) Screenshot (2)


Checklist:

Eg - If your code follow the below guidelines. Kindly change [] to [x]

All the conditions should be fulfilled for considering your code for merging -

SarthakKeshari commented 2 years ago

@AnkitBhujeja, Your PR is under review. Kindly create an issue first as its the process as per contribution guidelines. I am not closing this PR since this was your first time. You may refer CONTRIBUTING.md(present in the repository) and create an issue.

Kindly create an issue now and claim it. I will assign it to you.

SarthakKeshari commented 2 years ago

@AnkitBhujeja, Kindly create an issue first and then PR. And follow the PR template and contribution guidelines. I am not closing this PR since this was your first time. You may refer CONTRIBUTING.md(present in the repository) and create an issue(iff program has not been done in repositories probable folders).

If above given lines follow, then kindly create an issue now and claim it. I will assign it to you.