Skip to content

Category Archives: C++ Programs

Prerequisites: Ordered Set and GNU C++ PBDS Given an ordered set set and a key K, the task is to find the upper bound and lower… Read More
Queue in STL are a type of container adaptors which operate in a first in first out (FIFO) type of arrangement where elements are inserted… Read More
Given string str of size N, the task is to remove all the characters from the string that have odd frequencies. Examples:  Input: str =… Read More
Before moving forward with using const with Reference to a Pointers, let us first see what they are one by one: Pointers are used to… Read More
The task is to implement a custom vector class similar to the STL vector with following functions:   int push_back(data): adds an element(of any data_type) to… Read More
The std::boost::is_array template of Boost C++ Library used to check whether the given type is an array type or not. It returns a boolean value… Read More
Given a number N. The task is to check if the given number is Prime Number or not.Examples:   Input: N = 987 Output: Not a Prime… Read More
Stack in STL Stacks are a type of container adaptors with LIFO(Last In First Out) type of working, where a new element is added at… Read More
Set in STL Sets are a type of associative containers in which each element has to be unique, because the value of the element identifies… Read More
Priority Queue in STL Priority queues are a type of container adapters, specifically designed such that the first element of the queue is the greatest… Read More
Given a map in C++, the task is to find the entry in this map with the highest value. Examples: Input: Map = {ABC =… Read More
Prerequisite: Socket Programming in C/C++ It is possible to send data from the server and receive a response from the client. Similarly, the client can… Read More
Pre-requisite: Separate Chaining, STL in C++ This article implements the Separate Chaining in Hashing with help of STL in C++ without the use of pointers.… Read More
As it is already known that main() method is the entry point in any program in C++, hence creating a class named “main” is a… Read More
Given an array arr[] of N unique positive integers and an element X, the task is to count the total possible number of subsets of… Read More

Start Your Coding Journey Now!