Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 80. Remove Duplicates from Sorted Array II
Given a sorted array, remove duplicates in-place so that each distinct value appears at most twice and return the new length k, preserving relative order and using O(1) extra space.
Asked at:
Amazon
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Late November, 2024
Amazon
Junior
Remove Duplicates from Sorted Array II (with some Object-Oriented Design variation)
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.