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

0% completed

Vote For New Content
Problem statement was a little confusing in my opinion, as the solution does not...

Joseph

Mar 6, 2022

Problem statement was a little confusing in my opinion, as the solution does not technically remove all duplicates from the array. But at the end, I suppose you could return the subarray of length nextNonDuplicate ? Image

14

0

Comments
Comments
M
Mirza Chilman3 years ago

I agree, this is not removing non duplicate, more like counting non duplicate

J
jide.fajobi 2 years ago

100% agree, I was going to make a post saying the exact same thing

On this page

Problem Statement

Try it yourself