 Posts by Anurag Tiwari

Author Biographical Info: NITian, Ex-KVian

#### C++ STL’s unordered_multiset And Its Applications

By Anurag Tiwari

In this tutorial, we shall learn about C++ STL’s unordered_multiset and its applications. For understanding this you must know unordered_set which you can read it here unorde.... Read More

#### All Permutations Of An Array In C++

By Anurag Tiwari

In this tutorial, we shall learn to compute all permutations of an array in C++. Here we shall be using STL’s next_permutation function. The std::next_permutation is used to .... Read More

#### Binomial Distribution In C++

By Anurag Tiwari

In this tutorial, we shall learn to compute the integers according to the binomial discrete distribution in C++. So, first, we need to know what is a binomial distribution. The bin.... Read More

#### Prefix Sum Of Matrix (OR 2D Array) In C++

By Anurag Tiwari

In this tutorial, we shall learn to solve the prefix sum of a matrix (or 2D array) problem in C++. It is an application of competitive programming. A prefix matrix is such a matrix.... Read More

#### Prefix To Infix Conversion In C++

By Anurag Tiwari

In this tutorial, we shall learn the easiest way to convert prefix expression to infix expression in C++. As we know that we humans are more used to infix expressions such as ( a +.... Read More

#### Prefix Expression Evaluation In C++

By Anurag Tiwari

In this tutorial, we shall learn to evaluate prefix expression in C++. We shall use stack data structure from the STL. The computer does not know how to evaluate infix expression, .... Read More

#### Reverse a linked list using STL stack in C++

By Anurag Tiwari

In this tutorial, we will learn how to reverse a linked list using stack in STL in C++. Reversing of linked list can be done by many methods but using stacks is the easiest of all..... Read More

#### How to check if a given string is binary or not in C++

By Anurag Tiwari

In this tutorial, we will learn how to check if a given string is binary or not in C++. This problem can be considered as a subset of string problems in which we check for the pres.... Read More