Skip to content

Conversation

@nikhilsaimarri
Copy link

Implement a method to remove duplicates from an array while allowing at most two occurrences of each number.

Implement a method to remove duplicates from an array while allowing at most two occurrences of each number.
@super30admin
Copy link
Owner

  • The student's solution is for a different problem (removing duplicates with at most k duplicates allowed) rather than merging two sorted arrays. It is important to carefully read and understand the problem statement before attempting to solve it.
  • The code quality and efficiency are good for the problem the student addressed, but the solution does not match the reference problem.
  • In the future, ensure that the solution aligns with the problem requirements. Double-check the problem statement and verify that the solution addresses the correct problem.

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

Successfully merging this pull request may close these issues.

2 participants