## 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 »

## How to find common elements between two Vector using STL in C++?

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

## How to find common elements between two Arrays using STL in C++?

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 »

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

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

## Working with Array and Vectors using STL in C++

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 »

## Keep track of previous indexes after sorting a vector in C++ STL

Prerequisite: vector, vector pair sorting Given a vector, keep track of the present indexes corresponding to each element and after sorting print element with its… Read More »

## Salesforce Interview Experience | On-Campus for FTE

Salesforce recently visited our campus BITS Pilani for the first time for Associate Member of Technical Staff role in Hyderabad. Round 1: Online Round (Hosted on… Read More »

## How to delete a range of values from the List using Iterator

Given a List, the task is to delete a range of values from this List using Iterator. Example: Input: list = [10 20 30 40… Read More »

## How to create a List with Constructor in C++ STL

Lists are sequence containers that allow non-contiguous memory allocation. As compared to vector, list has slow traversal, but once a position has been found, insertion… Read More »

## How to delete last element from a List in C++ STL

Given a List, the task is to remove the last element from this List in C++. Examples: Input: list = [10 20 30 70 80… Read More »

## Finding Floor and Ceil of a Sorted Array using C++ STL

Given a sorted array, the task is to find the floor and ceil of given numbers using STL. Examples: Input: arr[] = {1, 2, 4,… Read More »

## Find Maximum and Minimum element in a Set in C++ STL

Given a Set, the task is to find the maximum and minimum element of this set in C++ STL. Examples: Input: set={1, 6, 15, 10,… Read More »

## deque emplace in C++ STL

Deque or Double-ended queues are sequence containers with the feature of expansion and contraction on both the ends. They are similar to vectors, but are… Read More »

## How to delete an element from the Set by passing its value in C++

Given a Set, the task is to remove the last element from this Set in C++. Examples: Input: set = [10 20 30 70 80… Read More »