Questions tagged as 'set'

2
answers

Create list without duplicate values

I have a list of int and I want to save more numbers in it, but numbers that do not repeat themselves. How do I find if it already has a certain value in this list?     
asked by 16.08.2014 / 02:59
2
answers

Convert a collection of type Set to List

I have a class that has an attribute of type Set, because I want repeated values to be ignored, however I need to return this in List form to fill in a ListView , so what is the best way to implement this feature? Reader.java packag...
asked by 12.08.2015 / 19:52
2
answers

What is the difference between SET and ENUM in MySQL?

What are the differences between SET and ENUM in MySQL? And in which situations are both applied in the best way?     
asked by 28.09.2017 / 16:35
3
answers

In what order is a Set stored? Random?

When I store something inside a Set , the order in which it stores is random? And how could I sort a Set ?     
asked by 12.11.2014 / 15:59
2
answers

How to access the elements of a set?

I'm studying about sets ( set ) in Python because I'm going to use an algorithm to find paths in a graph, it's for a college discipline I'm having. I created two assembly examples using two different notations. Look at the illustration...
asked by 06.09.2018 / 20:59
2
answers

Function library find () does not return if found or not

I'm writing a program for a college exercise and I'm not sure about find() . I must enter two integers, check if the first number exists within the set already defined previously. If it exists, I should insert the second integer in...
asked by 14.10.2018 / 00:04
3
answers

Is there any way in pure C to implement set?

I'm doing a job for college and I need to check word for word from a "dictionary" in file txt and compare those words with the words of an array that was provided. In order to make my life easier (as I'll have to figure out some way to...
asked by 14.12.2015 / 20:44
1
answer

Set values of an array recursively

Assuming I have the following array array( 'chave1' => 'valor1', 'chave2' => array( 'chave3' => 'valor2', 'chave4' => array( 'chave5' => 'valor3' ) )) And in this array I need to set the value of key 5, bu...
asked by 14.06.2015 / 23:40
1
answer

Type set in Python is ordered?

When creating a variable like this: a = {1,2,5,1,3} It ends up returning a variable of type set . However, in the Python documentation, it is said that it is impossible to create a set without the set() function. Also,...
asked by 06.06.2017 / 15:36
1
answer

How to get the items that multiple lists have in common

How do you do when there is no common item, posting notices? Listing 1, 2, and 3 have different index numbers. def compabilitySorter (lista1, lista2, lista3): listCompatible=[lista1, lista2, lista3] checkedItem=set() commonIt...
asked by 12.12.2018 / 13:42