Top "Set" questions

A set is a collection in which no element is repeated, which may be able to enumerate its elements according to an ordering criterion (an "ordered set") or retain no order (an "unordered set").

Python set Union and set Intersection operate differently?

I'm doing some set operations in Python, and I noticed something odd.. >> set([1,2,3]) | set([2,3,4]) set([1, 2, 3, 4]) >> set().…

python set union intersection
golang why don't we have a set datastructure

I'm trying to solve "The go programming lanaguage" exercise #1.4 which requires me to have a set. I can create a …

data-structures go set
Different types of thread-safe Sets in Java

There seems to be a lot of different implementations and ways to generate thread-safe Sets in Java. Some examples include 1) …

java concurrency set
Ways to create a Set in JavaScript?

In Eloquent JavaScript, Chapter 4, a set of values is created by creating an object and storing the values as property …

javascript set
How to set and get fields in struct's method

After creating a struct like this: type Foo struct { name string } func (f Foo) SetName(name string) { f.name = name } …

struct get set go
what does O(N) mean

Possible Duplicate: What is Big O notation? Do you use it? Hi all, fairly basic scalability notation question. I recently …

performance scalability big-o set
android set custom font to a paint

I want to draw a text to a paint. How to draw it with a custom font (ex Helvetica ) and …

android fonts set paint
What's the difference between HashSet and Set?

Saw the code snippet like Set<Record> instances = new HashSet<Record>(); I am wondering if Hashset …

java interface set
Is there a better way to combine two string sets in java?

I need to combine two string sets while filtering out redundant information, this is the solution I came up with, …

java set