Tutorials
Courses
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
Misc
8.5K+ articles
C++
4.3K+ articles
STL
1.3K+ articles
CPP Examples
714+ articles
CPP-Functions
619+ articles
cpp-vector
375+ articles
CPP-Library
254+ articles
cpp-strings-library
46+ articles
cpp-binary-search
5+ articles
cpp-algorithm-library
81 posts
Recent Articles
Popular Articles
shuffle vs random_shuffle in C++
Last Updated: 14 February 2025
random_shuffleIt randomly rearranges the elements in range [first, last). The function swaps the value of each element with some other randomly picked element. When provid...
read more
Technical Scripter
C++
STL
cpp-algorithm-library
sort_heap function in C++
Last Updated: 14 August 2018
The sort_heap( ) is an STL algorithm which sorts a heap within the range specified by start and end. Sorts the elements in the heap range [start, end) into ascending order...
read more
C++
STL
cpp-algorithm-library
std::stable_partition in C++
Last Updated: 05 October 2017
The stable_partition( ) algorithm arranges the sequence defined by start and end such that all elements for which the predicate specified by pfn returns true come before t...
read more
C++
STL
cpp-algorithm-library
partition_point in C++
Last Updated: 05 August 2018
partition_point() Gets the partition point : Returns an iterator to the first element in the partitioned range [first, last) for which pred(predicate) is not true, indicat...
read more
C++
STL
cpp-algorithm-library
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 ordered according to how they compa...
read more
Misc
C++
STL
CPP-Functions
cpp-algorithm-library
std::string::remove_copy(), std::string::remove_copy_if() in C++
Last Updated: 29 May 2018
remove_copy()It is an STL function in c++ which is defined in algorithm library. It copies the elements in the range [first, last) to the range beginning at result, except...
read more
C++
STL
CPP-Library
cpp-algorithm-library
Algorithm Library Functions in C++ STL
Last Updated: 21 August 2023
Non-modifying sequence operationsstd :: all_of : Test condition on all elements in rangestd :: any_of : Test if any element in range fulfills conditionstd :: none_of :Test...
read more
C++
STL
cpp-advanced
cpp-algorithm-library
cpp-containers-library
Internal Working of sort() in C++
Last Updated: 28 November 2024
In C++, sort() is an STL function used for sorting containers such as arrays, vectors, etc. It provides an efficient and versatile way to sort data in C++. In this article...
read more
C++
cpp-algorithm-library
How to Reverse an Array using STL in C++?
Last Updated: 15 November 2024
Reversing an array means rearranging its elements so that the first element becomes the last, the second element becomes the second last, and so on. In this article, we wi...
read more
Misc
C++ Programs
C++
STL
cpp-array
cpp-algorithm-library
CPP Examples
Elements present in first array and not in second using STL in C++
Last Updated: 14 June 2022
Given two arrays, the task is that we find numbers which are present in first array, but not present in the second array, using STL in C++ Examples:Input: a[] = {1, 2, 3, ...
read more
C++
STL
cpp-algorithm-library
partition_copy in C++ STL
Last Updated: 27 November 2022
partition_copy is the inbuilt function defined in algorithm library in STL. partition_copy function duplicates the partitioned elements into the various containers given i...
read more
Technical Scripter
C++
Picked
Technical Scripter 2022
STL
cpp-algorithm-library
any_of() Function in C++ STL
Last Updated: 24 August 2023
any_of() is the C++ function defined in algorithm library in STL. This function determines whether even one element in a given range satisfies a specified criterion. If at...
read more
Technical Scripter
C++
Picked
Technical Scripter 2022
STL
cpp-algorithm-library
copy_n() Function in C++ STL
Last Updated: 27 November 2022
Copy_n() is the C++ function defined in algorithm library in STL. It helps to copy one array element to the new array. Copy_n function allows the freedom to choose how man...
read more
Technical Scripter
C++
Picked
Technical Scripter 2022
STL
cpp-algorithm-library
How to Remove an Element from Array in C++?
Last Updated: 11 October 2024
In C++, removing an element from an array is tricky because we cannot modify the memory space occupied by the array. So, we pseudo delete the element by moving it to the e...
read more
C++ Programs
C++
Picked
STL
cpp-array
cpp-algorithm-library
CPP-OOPs
CPP Examples
std::remove_if in C++ STL
Last Updated: 17 October 2024
std::remove_if() is a built-in algorithm of the C++ STL that is used to remove elements from a specified range of elements that satisfies the given condition. The conditio...
read more
C++
STL
cpp-algorithm-library
1
2
3
4
5
6
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 !