In this tute, we will discuss Eulerian Path and Circuit for undirected graphs in C++. Many of us would’ve heard of this somewhere when learning math concepts. What is an undi.... Read More
In this tute, we will discuss Modular Exponentiation (Power in Modular Arithmetic) in C++. Given 3 integers a, b, and m, find (ab) % m. Let’s see how to calculate (ab) % m i.... Read More
In this tutorial, we are going to learn how to write a program to print a diamond pattern in C++. The pattern can be of any size, it will depend on the number of rows entered by a .... Read More
In this tutorial, we will be learning the working of generate() and generate_n() functions in C++. These two functions are defined in std::algorithm header and are used to generate.... Read More
In this tutorial, we will be learning how to compute Manhattan Distance between two points in C++. Manhattan Distance is a very simple distance between two points in a Cartesian pl.... Read More
In this tutorial, we will learn about the generator function in C++. A generator function is used to produce values having a particular sequence called a series. The series is prod.... Read More
This tutorial will help you to learn how to print calendar for a specific year in C++. The user can get the whole calendar by just mentioning the required year. Feel free to ask qu.... Read More
As it is quite evident from the name that strstr() function in C++ is a function that does some string related tasks. And like most of the built-in string functions, this function .... Read More