## array::crbegin() and array::crend() in C++ STL

array::crbegin() is a built-in function in C++ STL which returns a constant reverse iterator pointing to the last element in the container. Syntax: array_name.crbegin() Parameters:… Read More »

- Reach the numbers by making jumps of two given lengths
- Sets of pairs in C++
- Reverse middle words of a string
- C++ Program to concatenate two strings using Operator Overloading
- Iterative Letter Combinations of a Phone Number
- Number of pairs whose sum is a power of 2
- Zig-Zag traversal of a Binary Tree using Recursion
- Smallest Pair Sum in an array
- CSV file management using C++
- Program to print Step Pattern
- Find the Nth term of the series 14, 28, 20, 40,.....
- Sum of nodes at maximum depth of a Binary Tree | Set 2
- Clockwise Spiral Traversal of Binary Tree
- Passing and Returning Objects in C++
- Program to find the kth character after decrypting a string
- Shortest path on a Square
- Program to print the given Z Pattern
- Find Maximum and Minimum element in a Set in C++ STL
- Split a string in equal parts such that all parts are palindromes
- multiset erase() in C++ STL
- User defined derived data types in C++
- MakeFile in C++ and its applications
- How to delete last element from a set in C++
- C++ Mathematical Functions
- Iterative Boundary traversal of Complete Binary tree
- Find the element having different frequency than other array elements
- Sum of Bitwise-OR of all subarrays of a given Array | Set 2
- Sum of minimum elements of all possible sub-arrays of an array
- Finding Floor and Ceil of a Sorted Array using C++ STL
- Nested switch statement in C++

array::crbegin() is a built-in function in C++ STL which returns a constant reverse iterator pointing to the last element in the container. Syntax: array_name.crbegin() Parameters:… Read More »

Given two integers say a and b. Find the quotient after dividing a by b without using multiplication, division and mod operator. Examples: Input: a… Read More »

bitset::test() is an inbuilt function in C++ STL which tests whether the bit at a given index is set or not. Syntax: bitset_name.test(index) Parameters: The… Read More »

set::rbegin() is a built-in function in C++ STL which returns a reverse iterator pointing to the last element in the container. Syntax: reverse_iterator set_name.rbegin() Parameters:… Read More »

Given a binary string and a number m, the task is to check if the string has m consecutive 1’s or 0’s Examples: Input :… Read More »

Given a number N and a digit D. Write a program to find how many times the digit D appears in the number N. Examples… Read More »

bitset::count() is an inbuilt STL in C++ which returns the number of set bits in the binary representation of a number. Syntax: int count() Parameter:… Read More »

count_if() function returns the number of elements in a range that satisfy the condition. Examples: Input: 0 1 2 3 4 5 6 7 8… Read More »

Given an array of N integers, write a program that prints the length of the longest subarray such that adjacent elements of the subarray have… Read More »

Suppose there are n towns connected by m bidirectional roads. There are s towns among them with a police station. We want to find out… Read More »

The Strassen’s method of matrix multiplication is a typical divide and conquer algorithm. We have discussed Strassen’s Algorithm here. However, let’s get again on what’s… Read More »

The tellg() function is used with input streams, and returns the current “get” position of the pointer in the stream. It has no parameters and… Read More »

Delete is an operator that is used to destroy array and non-array(pointer) objects which are created by new expression. Delete can be used by either… Read More »

Given a string S consisting of only characters ‘a’ and ‘b’, and an integer N. The string S is added N times to obtain string… Read More »

Give a sentence, print different words present in it. Words are separated by space. Examples: Input : str = “Geeks for Geeks” Output : Geeks… Read More »