## std::is_permutation in C++ STL

The C++ function std::algorithm::is_permutation() tests whether a sequence is permutation of other or not. It uses operator == for comparison. This function was defined in… Read More »

## Different methods to copy in C++ STL | std::copy(), copy_n(), copy_if(), copy_backwards()

Various varieties of copy() exist in C++ STL that allows to perform the copy operations in different manners, all of them having their own use.… Read More »

## std::minmax() and std::minmax_element() in C++ STL

C++ defined functions to get smallest and largest elements among 2 or in a container using different functions. But there are also functions that are… Read More »

## Geometry using Complex Numbers in C++ | Set 2

After going through previous post, we know what exactly are complex numbers and how we can use them to simulate points in a cartesian plane.… Read More »

## Geometry using Complex Numbers <std::complex> in C++ | Set 1

While solving geometric problems, it is time consuming to define the point class for specifying a point on the 2D Plane or the Euclidean Plane.… Read More »

## std::mismatch() with examples in C++

C++ STL has lots of useful functions that helps us to achieve various programming tasks. One such function is “mismatch()” . This function, defined in… Read More »

## std::gcd | C++ inbuilt function for finding GCD

In many competitive programming problems, we need to find greatest common divisor also known as gcd. Euclids algorithm to find gcd has been discussed here… Read More »

## is_permutation() in C++ and its application for anagram search

is_permutations() is used to check if two containers like string and vector are permutation of each other. It accepts three parameters, the first two parameters… Read More »

## C++ tricks for competitive programming (for C++ 11)

We have discussed some tricks in below post. In this post, some more tricks are discussed. Writing C/C++ code efficiently in Competitive programming Although practice… Read More »

## How to store Data Triplet in a Vector in C++?

Given a vector, how can we store 3 elements in one cell of vector. Examples: Input : 2 5 10 3 6 15 Output :… Read More »

## Different ways to delete elements in std::map (erase() and clear())

This article deals with the deletion part of Maps. Using erase() : erase() is used to erase the pair in map mentioned in argument, either… Read More »

## MakeMyTrip Interview Experience | Set 14 (For Senior Android developer)

Senior Android developer(4-8 years) Qualification & Experience- · 4-8 years of experience in software development · Experience in Mobile App development in Android is a… Read More »

## Conversion of whole String to uppercase or lowercase using STL in C++

Given a string, convert the whole string to uppercase or lowercase using STL in C++. Examples: For uppercase conversion Input : s = “String” Output… Read More »

## Inserting elements in std::map (insert, emplace and operator [])

Prerequisite : Map in STL Map is a container, as name suggests used to store a key-value pair. Map has an advantage over other containers… Read More »

## Searching in a map using std::map functions in C++

Usually, main purpose of using map stl container is for efficient search operations and sorted order retrieval. As map stores key-value pair, all the search… Read More »