# Tag Archives: STL

## Elements present in first array and not in second using STL in C++

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… Read More »

## All permutations of an array using STL in C++

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 »

## How to find the minimum and maximum element of a Vector using STL in C++?

Given a vector, find the minimum and maximum element of this vector using STL in C++. Example: Input: {1, 45, 54, 71, 76, 12} Output:… Read More »

## How to find the minimum and maximum element of an Array using STL in C++?

Given an array arr[], find the minimum and maximum element of this array using STL in C++. Example: Input: arr[] = {1, 45, 54, 71,… Read More »

## How to find the sum of elements of an Array using STL in C++?

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 »

## How to join two Arrays using STL in C++?

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 »

## Program to check if an Array is Palindrome or not using STL in C++

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 »

## How to reverse an Array using STL in C++?

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 »

## How to sort an Array in descending order using STL in C++?

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 »

## How to reverse a Vector using STL in C++?

Given a vector, reverse this vector using STL in C++. Example: Input: vec = {1, 45, 54, 71, 76, 12} Output: {12, 76, 71, 54,… Read More »

## How to sort an Array using STL in C++?

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 »

## How to find the maximum element of a Vector using STL in C++?

Given a vector, find the maximum element of this vector using STL in C++. Example: Input: {1, 45, 54, 71, 76, 12} Output: 76 Input:… Read More »

## How to find the sum of elements of a Vector using STL in C++?

Given a vector, find the sum of the elements of this vector using STL in C++. Example: Input: vec = {1, 45, 54, 71, 76,… Read More »

## How to sort a Vector in descending order using STL in C++?

Given a vector, sort this vector in descending order using STL in C++. Example: Input: vec = {1, 45, 54, 71, 76, 12} Output: {76,… Read More »

## How to join two Vectors using STL in C++?

Given two vectors, join these two vectors using STL in C++. Example: Input: vec1 = {1, 45, 54, 71, 76, 12}, vec2 = {1, 7,… Read More »