Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content
Hussain Zaidi
Solution contradictory to problem

Hussain Zaidi

Nov 19, 2023

The problem says: "The relative order of the elements should be kept the same" But in the solution relative order is kept only for the non-duplicate part of the array. Which isn't what the problem suggests.

8

0

Comments
Comments

On this page

Problem Statement

Try it yourself