Posts from C++

Stack implementation using Array in C++

By Amit Razdan

In this post, I will provide information about how to implement a stack using an array using a C++ programming language. There are various types of data structures out of which sta.... Read More

C++ Class Representations

By Ramneeq Sodhi

Here we are going to make our own C++ program to make our own classes. So what is a class? Classes are like building blocks in C++. They are user-defined datatype and they hold the.... Read More

std::distance() in C++

By Keshav J

In this tute, we will discuss about std::distance() in C++. The std::distance() is an in-built function provided in the Standard Library (STL). The std::distance() method is used t.... Read More

Write a program to print all the LEADERS in an array in C++

By Ayush Singh

This article will guide you on how to write an efficient program to print all the LEADERS in an array in C++ programming. An element is called the leader of an array if there is no.... Read More

C++ Program to print Swastika Pattern

By Anubhav Bansal

In this C++ tutorial, we will see how to print Swastik pattern from given number n, the pattern of n height using loops. Note- N, an odd number (>=5). Print Swastik Pattern Divi.... Read More

Euler tour of a tree in C++

By Keshav J

In this tute, we will discuss the Euler tour of a tree in C++. Before entering into the topic, let’s see an intro about trees. Euler Tour: Euler Tour of a tree is defined as .... Read More

Merge two sorted arrays in C++

By Ayush Singh

This article will guide you on how to write an efficient program to merge two sorted arrays in C++. To understand better, let us see some examples.If the input arrays are : a[ ]={1.... Read More

Find number of squares inside a given square grid in C++

By HARISHWAR REDDY MUNUKUNTLA

In this tutorial, we will check out how to find the number of squares inside a given square grid in C++ with the corresponding code. If the square grid contains a side of N*N, then.... Read More

Related Posts