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
C++
4k+ articles
C++ Programs
2.5k+ articles
Misc
2.1k+ articles
C Language
1.8k+ articles
STL
1.2k+ articles
CPP-Functions
600+ articles
cpp-vector
360+ articles
CPP-Library
240+ articles
cpp-binary-search
5 articles
cpp-algorithm-library
80 posts
Popular Articles
Recent Articles
std::next_permutation and prev_permutation in C++
Last Updated: 07 October 2024
For a given collection of N elements, a permutation is N! (factorial) possible arrangements the elements. Different permutations can be orde
...read more
STL
CPP-Functions
C++
cpp-algorithm-library
std::unique in C++
Last Updated: 11 March 2024
In C++, std::unique is used to remove duplicates of any element present consecutively in a range[first, last). It performs this task for all
...read more
STL
C++
cpp-algorithm-library
upper_bound() in C++
Last Updated: 28 November 2024
In C++, upper_bound() is a built-in function used to find the first element in a sorted range that is strictly greater than a given value. I
...read more
STL
CPP-Functions
C++
cpp-algorithm-library
Similar Topics
DSA
22.3k+ articles
C++
4k+ articles
C++ Programs
2.5k+ articles
Misc
2.1k+ articles
C Language
1.8k+ articles
STL
1.2k+ articles
CPP-Functions
600+ articles
cpp-vector
360+ articles
CPP-Library
240+ articles
cpp-binary-search
5+ articles
max_element in C++ STL
Last Updated: 18 October 2024
The std::max_element() in C++ is an STL algorithm that is used to find the maximum element in the given range. It is defined inside the algo
...read more
STL
C++
cpp-algorithm-library
std::max in C++
Last Updated: 11 January 2025
The std::max() is the built-in function in C++ used for finding the maximum among two or more elements passed to it as arguments. It is defi
...read more
STL
C++
cpp-algorithm-library
std::min in C++
Last Updated: 26 September 2024
The std::min() is used to find the minimum element among the given elements. It is the built-in function of C++ STL defined inside algorithm
...read more
STL
C++
cpp-algorithm-library
std::lower_bound in C++
Last Updated: 13 February 2025
In C++, the std::lower_bound() is a built-in function used to find the position of an element in a sorted range that has a value not less th
...read more
STL
C++
cpp-algorithm-library
cpp-binary-search
count() in C++ STL
Last Updated: 27 November 2024
In C++, the count() is a built-in function used to find the number of occurrences of an element in the given range. This range can be any ST
...read more
STL
CPP-Functions
C++
cpp-algorithm-library
reverse() in C++ STL
Last Updated: 06 December 2024
In C++, the reverse() is a built-in function used to reverse the order of elements in the given range of elements. This range can be any STL
...read more
STL
C++
cpp-algorithm-library
Binary Search functions in C++ STL (binary_search, lower_bound and upper_bound)
Last Updated: 30 September 2024
In C++, STL provide various functions like std::binary_search(), std::lower_bound(), and std::upper_bound() which uses the the binary search
...read more
Binary Search
STL
C++
cpp-algorithm-library
cpp-binary-search
C++ STL Algorithm Library
Last Updated: 10 March 2025
Standard Template Library (STL) offers a rich collection of algorithms designed to operate on STL containers and beyond. It provides commonl
...read more
Competitive Programming
STL
cpp-algorithm-library
DSA
sort() in C++ STL
Last Updated: 10 January 2025
In C++, sort() is a built-in function used to sort the given range in desired order. It provides a simple and efficient way to sort the data
...read more
STL
CPP-Library
C Language
C++
cpp-algorithm-library
std::upper_bound and std::lower_bound for Vector in C++ STL
Last Updated: 13 February 2025
The std::upper_bound() and std::lower_bound() functions are used for binary search operations STL containers that provide random access. Th
...read more
STL
cpp-vector
C++
cpp-algorithm-library
cpp-containers-library
cpp-binary-search
Sort in C++ Standard Template Library (STL)
Last Updated: 11 January 2025
Sorting is one of the most basic operations applied to data. It means arranging the data in a particular order, which can be increasing, dec
...read more
STL
C++
cpp-algorithm-library
std::binary_search() in C++ STL
Last Updated: 04 November 2024
In C++, STL provide std::binary_search() function which implements binary search algorithm to check whether an element exists in the given s
...read more
STL
C++
cpp-algorithm-library
1
2
3
4
5
6
>>
Last
1
2
3
4
5
6
>>
Last
1
2
3
4
>>
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 !