Posts by Prabhnoor Singh

Author Biographical Info: Not available

C++ program to find next Smaller of next Greater in an array

By Prabhnoor Singh

For every element in the array, print the next smaller of the next greater element. Also print -1 for elements who do not either the next greater or next smaller of the next greate.... Read More

Iterator Invalidation in C++

By Prabhnoor Singh

There are many cases in which our iterator gets invalidated while we iterate any container. This can be due to many reasons including the change in size or shape of the container w.... Read More

Static Const Member Variable in C++

By Prabhnoor Singh

In this article, we will be learning about the static const member variable in C++ which is a combination of const which is a type qualifier and static which is a storage specifier.... Read More

Functions in C++ that cannot be overloaded

By Prabhnoor Singh

There are many function declarations in C++ that cannot be overloaded. We will look forward to those in this article. What is Function Overloading? It is an attribute in C++ where .... Read More

Swap nodes in a linked list without swapping data in C++

By Prabhnoor Singh

This article is about swapping nodes in a linked list without swapping data by changing links in the C++ language. What is a Linked List? A linked list is a linear data structure i.... Read More