Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Misc
8.8K+ articles
Arrays
6.5K+ articles
C++
4.3K+ articles
Searching
1.7K+ articles
Hash
1.3K+ articles
STL
1.3K+ articles
CPP-Functions
615+ articles
cpp-unordered_set-functions
25+ articles
cpp-unordered_set
102+ posts
Recent Articles
Popular Articles
What is the difference between Set vs Hashset in C++?
Last Updated: 23 May 2024
In C++, both set and HashSet(also called unordered_set) are used to store elements but they have different properties and use cases. In this article, we will learn the key...
read more
STL
C++
HashSet
C++ Programs
cpp-unordered_set
cpp-set
Picked
CPP Examples
How to Create Deque of Unordered_Set in C++?
Last Updated: 27 March 2024
In C++, a deque (double-ended queue) is a container that allows insertion and removal of elements from both ends whereas an unordered set is a container that stores unique...
read more
STL
C++
C++ Programs
cpp-unordered_set
cpp-deque
Picked
CPP Examples
Check if array contains duplicates
Last Updated: 29 August 2024
Given an integer array arr[], check if the array contains any duplicate value.Examples:Input: arr[] = {4, 5, 6, 4}Output: trueExplanation: 4 is the duplicate value.Input: ...
read more
cpp-unordered_set
Picked
DSA
Set
Find product of nodes whose weights is catalan number in a Linked list
Last Updated: 04 December 2023
Given a linked list with weights, the task is to find the product of nodes whose weights are Catalan numbers.Examples:Input: 3(1) - 7 (4) - 5 (2) - 12 (5) - 14 (3) - NULLO...
read more
Linked List
Data Structures-Linked List
cpp-unordered_set
Geeks Premier League
DSA
max_bucket_count() Function in Unordered Set C++ STL
Last Updated: 27 November 2022
Prerequisite: unordered_set() in C++The max_bucket_count() is the built-in function defined in C++ STL. This function returns the maximum number of buckets that the Unorde...
read more
Technical Scripter
STL
C++
cpp-unordered_set
Picked
Technical Scripter 2022
Count of distinct pair sum in given Array
Last Updated: 01 August 2022
Given an array arr[] of size N, the task is to find the total number of unique pair sums possible from the array elements.Examples:Input: arr[] = {6, 1, 4, 3}Output: 5Expl...
read more
Arrays
Greedy
cpp-unordered_set
DSA
How to Store Duplicate Elements in Ordered Set in C++?
Last Updated: 03 December 2024
The ordered set is a policy-based data structure in GNU C++ that contains unique elements in sorted order just like set. In this article, we will learn how to store duplic...
read more
STL
C++
cpp-unordered_set
Different Ways to Initialize an unordered_set in C++
Last Updated: 17 April 2023
An unordered_set is an associated container available in the C++ Standard Template Library(STL) that is used for unique elements without any specific ordering, it internal...
read more
STL
C++
cpp-unordered_set
C++ Program to Print all triplets in sorted array that form AP
Last Updated: 18 August 2023
Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression)Examples : Input : arr[] = { 2, 6, 9, 12, 17, 22, 31, 32, 3...
read more
Arrays
Searching
Hash
C++
C++ Programs
cpp-unordered_set
arithmetic progression
DSA
Java Program to Print all triplets in sorted array that form AP
Last Updated: 19 January 2022
Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression)Examples : Input : arr[] = { 2, 6, 9, 12, 17, 22, 31, 32, 3...
read more
Arrays
Java
Searching
Hash
Java Programs
cpp-unordered_set
arithmetic progression
DSA
Python3 Program to Print all triplets in sorted array that form AP
Last Updated: 05 September 2024
Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression)Examples :Input : arr[] = { 2, 6, 9, 12, 17, 22, 31, 32, 35,...
read more
Arrays
Searching
Hash
Python
Python Programs
cpp-unordered_set
arithmetic progression
DSA
PHP Program to Print all triplets in sorted array that form AP
Last Updated: 22 July 2024
Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression)Examples :Input : arr[] = { 2, 6, 9, 12, 17, 22, 31, 32, 35,...
read more
cpp-unordered_set
arithmetic progression
PHP
Javascript Program for Print all triplets in sorted array that form AP
Last Updated: 16 September 2024
Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression)Examples :Input : arr[] = { 2, 6, 9, 12, 17, 22, 31, 32, 35,...
read more
Arrays
Searching
Hash
Web Technologies
JavaScript
cpp-unordered_set
arithmetic progression
DSA
unordered set of Vectors in C++ with Examples
Last Updated: 19 December 2021
What is an unordered set?In C++, an unordered set is an unordered container that can hold a number of unique elements. Unlike a set, elements in an unordered set are not a...
read more
STL
cpp-vector
C++
cpp-unordered_set
C++ Program for Number of unique triplets whose XOR is zero
Last Updated: 27 August 2022
Given N numbers with no duplicates, count the number of unique triplets (ai, aj, ak) such that their XOR is 0. A triplet is said to be unique if all of the three numbers i...
read more
Arrays
Bit Magic
Searching
Bitwise-XOR
C++
C++ Programs
cpp-unordered_set
DSA
1
2
3
4
5
6
7
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !