Skip to content

Category Archives: C++

A header file contains the set of predefined standard library functions. The header file can be included in the program with the C preprocessing directive… Read More
C++
C++ provides us a facility using which one can represent a sequence of characters as an object of a class. This class is std::string. Internally,… Read More
Pre-requisite: Function Overloading in C++ Function overloading is a feature of object-oriented programming where two or more functions can have the same name but different… Read More
Prerequisites: Random-access Iterators, Bidirectional Iterators Sets are a type of associative container in which each element has to be unique because the value of the… Read More
Naming a file or a variable is the first and the very basic step that a programmer takes to write clean codes, where naming has… Read More
A pair is a container that stores two values mapped to each other, and a vector containing multiple numbers of such pairs is called a… Read More
A string is a collection of characters. For example, “GeeksforGeeks” is a string. C++ provides primitive data types to create a string. The string can… Read More
What is deque? In C++, a deque is a sequence container and it is also known by the name, double-ended queue. As the name implies,… Read More
A pointer is a variable that stores the memory address of an object.  The pointer then simply “points” to the object. The type of the… Read More
Given a matrix and the task is to check matrix is involutory matrix or not. Involutory Matrix: A matrix is said to be involutory matrix if… Read More
Given a N * N matrix and the task is to check matrix is idempotent matrix or not.Idempotent matrix: A matrix is said to be… Read More
Given n strings that are permutations of each other. We need to make all strings same with an operation that takes front character of any… Read More
Given an array of n elements. Our task is to write a program to rearrange the array such that elements at even positions are greater… Read More
What is a deque? In C++, the deque is a sequence container and it is also known by the name, double-ended queue. As the name… Read More
Given an array of positive integers. We are required to write a program to print the minimum product of any two numbers of the given… Read More

Start Your Coding Journey Now!