Posts from C++

Template Specialization in C++

By Neha Negi

In this tutorial, we will get all the information about template specialization in C++. Template is a feature of C++. Templates are used to create the generalized function and clas.... Read More

C++ program to change a Binary Tree so that every node stores sum of all nodes in left subtree

By Prabhnoor Singh

Update every node of a binary tree such that it stores the sum of all nodes in its left subtree including its own in C++. What is a Binary Tree? A non- linear data structure in whi.... Read More

C++ program to check if binary representation of a number is palindrome

By Prabhnoor Singh

For a non-negative number x, print Yes if the binary representation of x is a palindrome else print No in C++. The binary representation of a number with leading 0’s will not.... Read More

std::plus in C++ with examples

By Aniruddha Ghosh

In this article, we will learn about std::plus in C++ with examples. It is a function object of the C++ standard library for performing addition. The object class whose call return.... Read More

Implement upper_bound() and lower_bound() in Ordered Set in C++

By Prabhnoor Singh

We will learn about std::upper_bound and std::lower_bound functions. lower_bound() lower_bound() is an inbuilt function in C++. It is used to return an iterator pointer to the key .... Read More

Stack unwinding in C++

By Prabhnoor Singh

In this tutorial, we will learn about stack unwinding in C++. Stack Unwinding is the removal of the function call stack items at runtime. In C++, the function call stack is searche.... Read More

std::has_virtual_destructor in C++ with examples

By Prabhnoor Singh

In this article, we will learn about the has_virtual_destructor in C++ with examples. This function of C++ STL tells us if any template type T has a virtual destructor or not. Head.... Read More

How to convert min Heap to max Heap in C++

By Ritvik Nimmagadda

In this tutorial, we will learn how to convert Min Heap to Max Heap in C++. Heaps are one of the most used data structure in many algorithms. Read here for more understanding of He.... Read More