---
title: "Discussion on \"LeetCode Problem 80. Remove Duplicates from Sorted Array II\" | Hashnode"
description: "Discussion on \"LeetCode Problem 80. Remove Duplicates from Sorted Array II\". Problem\nGiven sorted array nums, remove the duplicates in place such that duplicates appeared at most twice and return the new length.\nDo not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) ext..."
url: "https://hashnode.com/posts/leetcode-problem-80-remove-duplicates-from-sorted-array-ii/63b3a713fc917c7ee52127d7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [LeetCode Problem 80. Remove Duplicates from Sorted Array II](https://sleeplessyogi.hashnode.dev/leetcode-problem-80-remove-duplicates-from-sorted-array-ii?utm_source=hashnode&utm_medium=feed)

Problem Given sorted array nums, remove the duplicates in place such that duplicates appeared at most twice and return 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) ext...

Jan 3, 2023 · 3 min read · sleeplessyogi.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Sleepless Yogi](https://hashnode.com/@sleeplessyogi)

@sleeplessyogi

  
[View profile](https://hashnode.com/@sleeplessyogi)

I teach everything related to JavaScript

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
