StackOverflow Questions for Tag: hashset

Alex
Alex

Reputation: 39

What is the difference between hashSet.add(n) and myList.append(n) in terms of Time Complexity?

Score: 0

Views: 68

Answers: 1

Read More
Hugh Self Taught
Hugh Self Taught

Reputation: 41

How to Find best match using hashset(Of String) ignore case

Score: 1

Views: 58

Answers: 1

Read More
Achiever
Achiever

Reputation: 1636

What is the main difference between Hashset, Treeset and LinkedHashset, Hashmap and how does it work in Java?

Score: 2

Views: 16064

Answers: 4

Read More
Ilgar Hidayatov
Ilgar Hidayatov

Reputation: 1

How should i store user and user_sessions as HKEY in Redis?

Score: 0

Views: 88

Answers: 1

Read More
anon
anon

Reputation:

The HashSet<T>.removeAll method is surprisingly slow

Score: 108

Views: 23895

Answers: 2

Read More
user3444725
user3444725

Reputation: 19

How do we get the initial capacity of a HashSet?

Score: -1

Views: 2467

Answers: 3

Read More
Rook
Rook

Reputation: 9

How to free the memory of one element in a HashSet?

Score: -1

Views: 72

Answers: 1

Read More
Moritz Groß
Moritz Groß

Reputation: 1490

The Java LinkedHashSet uses a doubly-linked list. Can it also be iterated backwards?

Score: 2

Views: 652

Answers: 3

Read More
Bob
Bob

Reputation: 1211

Get a sublist last 5 elements of LinkedHashSet?

Score: 1

Views: 1500

Answers: 5

Read More
Code Hard
Code Hard

Reputation: 43

Java Deque (Finding the max number of unique integers from subarrays.)

Score: 3

Views: 2562

Answers: 6

Read More
Frozen_Blood
Frozen_Blood

Reputation: 23

I am using klib library Can i use (khash) KHASH_SET_INIT_INT64() negative values for key. Because i saw in header file its using unsigned long int

Score: 2

Views: 132

Answers: 1

Read More
Manatee Pink
Manatee Pink

Reputation: 283

How to troubleshoot the performance of a multi-threaded algorithm using a lock-free hashset?

Score: 1

Views: 52

Answers: 0

Read More
Gordon Royle
Gordon Royle

Reputation: 256

What is the best way to process a vast number of strings keeping unique ones only?

Score: 1

Views: 21

Answers: 0

Read More
olzh13
olzh13

Reputation: 3

HashSet iterator() is linear not constant complexity?

Score: 0

Views: 120

Answers: 2

Read More
Joshtray
Joshtray

Reputation: 11

LeetCode problem 2503 Python optimization

Score: 0

Views: 81

Answers: 0

Read More
chrisg
chrisg

Reputation: 200

what is faster, std::sort then set_intersection, or std::unordered_map with double for-loop find?

Score: 0

Views: 100

Answers: 0

Read More
Pavan kalyan
Pavan kalyan

Reputation: 1

Max Sum in array excluding adjacent numbers

Score: 0

Views: 170

Answers: 1

Read More
codeDog
codeDog

Reputation: 53

When does unordered_set invoke operator==?

Score: 3

Views: 108

Answers: 1

Read More
bharath varma
bharath varma

Reputation: 61

How to get the last element of a HashSet?

Score: 2

Views: 831

Answers: 4

Read More
user2975289
user2975289

Reputation: 1

How can I use hash sets in java to determine if a string contains valid characters?

Score: 0

Views: 37447

Answers: 3

Read More
PreviousPage 5Next