Forem

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)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay