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
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)