Skip to content

Tag Archives: cpp-array

Given an array and an integer N, find elements which are divisible by N, using STL in C++ Examples: Input: a[] = {1, 2, 3,… Read More
Given an array, the task is to print or display all the reverse permutations of this array using STL in C++. Reverse permutation means, for… Read More
Given an array, the task is to print or display all the permutations of this array using STL in C++. Examples: Input: a[] = {1,… Read More
Given an array arr[], find the minimum and maximum element of this array using STL in C++.Example:  Input: arr[] = {1, 45, 54, 71, 76,… Read More
Given an array arr[], find the sum of the elements of this array using STL in C++. Example: Input: arr[] = {1, 45, 54, 71,… Read More
Given two arrays, join these two arrays using STL in C++. Example: Input: arr1[] = {1, 45, 54, 71, 76, 12}, arr2[] = {1, 7,… Read More
Given an array, the task is to determine whether an array is a palindrome or not, using STL in C++. Examples: Input: arr[] = {3,… Read More
Given an array arr[], reverse this array using STL in C++. Example: Input: arr[] = {1, 45, 54, 71, 76, 12} Output: {12, 76, 71,… Read More
Given an array arr[], sort this array in descending order using STL in C++. Example: Input: arr[] = {1, 45, 54, 71, 76, 12} Output:… Read More
Given an array arr[], sort this array using STL in C++. Example: Input: arr[] = {1, 45, 54, 71, 76, 12} Output: {1, 12, 45,… Read More
Given two arrays, find common elements between these two arrays using STL in C++. Example: Input: arr1[] = {1, 45, 54, 71, 76, 12}, arr2[]… Read More
Given an array arr[], find the maximum element of this array using STL in C++.Example:   Input: {1, 45, 54, 71, 76, 12} Output: 76 Input:… Read More
Using STL library it is very easy to perform certain basic operations on array like Sorting, searching, sum of elements, finding minimum and maximum element… Read More
The article illustrates the working of the different relational operator on the array STL. The equality comparison ( == ) is performed by comparing the… Read More
The array::at() is a built-in function in C++ STL which returns a reference to the element present at location i in given array. Syntax: array_name.at(i)… Read More

Start Your Coding Journey Now!