Category "duplicates"

remove duplicates from 2d lists regardless of order [duplicate]

I have a 2d list a = [[1, 2], [1, 3], [2, 1], [2, 3], [3, 1], [3, 2]] How can I get the result: result = [[1,2],[1,3],[2,3]] Where dupli

Mergesorting and Removing Duplicates in C (Any language will work)

This is my first question so I apologize in advance if I leave anything out or am ambiguous on an item. Anyway, this is code I got form GeeksForGeeks.org (arr

JS Find indices of duplicate values in array if there are more than two duplicates

I'm creating coordinate plane Three in a row game so I have to find out if there are three numbers of the same value in the array BUT WITHOUT sorting array beca

How do I get a list of all the duplicate items using pandas in python?

I have a list of items that likely has some export issues. I would like to get a list of the duplicate items so I can manually compare them. When I try to use

How to check if exists any duplicate in Java 8 Streams?

In java 8, what's the best way to check if a List contains any duplicate? My idea was something like: list.size() != list.stream().distinct().count() Is it

Remove pair duplicates from array of values

The problem In lua I have an array of values (specifically - x and y position values) from which I would like to remove duplicate pairs. The array looks as fol

Javascript - Remove duplicate ID from array of objects

Take the following two arrays: const array1 = [ { props: { type : 'text', id : 'item1', name : 'item1', value : '@item1@', },