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?
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...
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...
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...
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...
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...
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,...
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...