Posts from C++

Count Negative Numbers in a Sorted Matrix in C++

By Deepanshu

We are going to solve the problem of counting negative numbers in a sorted matrix and learn about the concepts and algorithm used. Then we will see its implementation in C++. Probl.... Read More

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

How to add two numbers represented by linked list in C++

By Rahul Ranjan

Hello Friends, Today we are going to learn how to add two numbers represented by linked list in C++. First, we will store the two numbers in the linked list and then we will see ho.... 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

fegetenv() and fesetenv() functions in C++

By Ranjeet V

In this tutorial, we will learn about fegetenv() and fesetenv() functions in C++. These are inbuilt functions and are defined in <cfenv> header file. fegetenv() The syntax of.... Read More