Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Sorting
1.7k+ articles
Java - util package
1.5k+ articles
Linked List
1.1k+ articles
Java-Arrays
160+ articles
CSES Problems
100+ articles
HashSet
66 articles
DSA
>
Data Structures
>
Set
Set
16 posts
Popular Articles
Recent Articles
CSES Solutions - Minimum Euclidean Distance
Last Updated: 30 July 2024
Given a set of points in the two-dimensional plane, your task is to find the minimum Euclidean distance between two distinct points.The Eucl
...read more
Geometric
Competitive Programming
Picked
DSA
Set
CSES Problems
CSES Solutions - Traffic Lights
Last Updated: 22 March 2024
There is a street of length X whose positions are numbered 0,1 ... X. Initially there are no traffic lights, but N sets of traffic lights ar
...read more
Sorting
Competitive Programming
Picked
DSA
Set
CSES Problems
CSES Solutions - Movie Festival II
Last Updated: 01 April 2024
In a movie festival, N movies will be shown. Syrjälä's movie club consists of K members, who will all be attending the festival. Given the
...read more
Sorting
Competitive Programming
Picked
DSA
Set
CSES Problems
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Sorting
1.7k+ articles
Java - util package
1.5k+ articles
Linked List
1.1k+ articles
Java-Arrays
160+ articles
CSES Problems
100+ articles
HashSet
66+ articles
CSES Solutions - Distinct Numbers
Last Updated: 01 May 2024
You are given a list of N integers arr[], and your task is to calculate the number of distinct values in the list.Examples: Input: N = 5, ar
...read more
Competitive Programming
Picked
DSA
Set
CSES Problems
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
...read more
cpp-unordered_set
Picked
DSA
Set
Number of K-Spikes in Stock Price Array
Last Updated: 12 May 2024
Given the changes to stock price over a period of time as an array of distinct integers, count the number of spikes in the stock price which
...read more
SAP-Labs-Question
Suffix-Array
prefix
DSA
Set
Longest Continuous Sequence with difference K in Linked List
Last Updated: 11 October 2023
Given a linked list and given an integer K, the task is to find the length of the longest continuous sequence in a linked list that has a di
...read more
Linked List
Hash
HashSet
Data Structures-Linked List
DSA
Set
Find Kth Largest/Smallest element in a Queue
Last Updated: 20 July 2023
Given a queue of integers and an integer K, our task is to write a program that efficiently finds Kth largest/smallest element present in th
...read more
Queue
Data Structures-Queue
Picked
DSA
Set
Partition Array for unique second half
Last Updated: 26 April 2023
Given an array arr[] having n integers, divide the array into two halves, such that all elements in the array's second half are unique eleme
...read more
Greedy
HashSet
DSA
Set
Map
Two nodes in a Linked list whose product is equal to the target value
Last Updated: 12 July 2023
Given a head of a singly linked list and a target value. The task is to find whether there exist any two nodes in the linked list whose prod
...read more
Linked List
DSA
Set
Find minimum number of Substrings with unique characters
Last Updated: 19 April 2023
Given string 's', the task is to divide a given string s into multiple substrings, with each substring containing only unique characters. Th
...read more
Strings
Greedy
Greedy Algorithms
substring
DSA
Set
Introduction to Set – Data Structure and Algorithm Tutorials
Last Updated: 26 July 2024
Set Data Structure is a type of data structure which stores a collection of distinct elements. In this article, we will provide a complete
...read more
Data Structures
DSA
Set
Help geek to Avoid explosion
Last Updated: 05 April 2023
Geek is a chemical scientist who is performing an experiment to find an antidote to a poison. The experiment involves mixing some solutions
...read more
disjoint-set
DSA
Set
Program to convert Array to Set in Java
Last Updated: 19 April 2023
Array is a group of like-typed variables that are referred to by a common name. An array can contain primitives data types as well as object
...read more
Arrays
Java
Java - util package
Java-Arrays
Java Programs
java-set
Java-Array-Programs
Java-Set-Programs
DSA
Set
Efficiently design Insert, Delete and Median queries on a set
Last Updated: 28 September 2021
Given an empty set initially and a number of queries on it, each possibly of the following types:Insert - Insert a new element ‘x’.Delet
...read more
Mathematical
DSA
Set
1
2
>>
Last
1
2
>>
Last
1
2
>>
Last
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 !