DEV Community

Beginner Developer
Beginner Developer

Posted on

1 line code to remove duplicate

I just learned a trick while solving a leet code problem.
duplicates from array can be removed from just 1 line of code 😀 without using default array_unique function

Ejaaz Khan
https://leetcode.com/problems/remove-duplicates-from-sorted-array/solutions/4517079/just-1-line-of-code-for-removing-dupllicate-from-an-array

Top comments (0)