Skip to content

Category Archives: C++ Programs

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
Given that a binary file “student.data” is already loaded in the memory of the computer with the record of 100 students, the task is to… Read More
Since it is known that main() method is the entry point of the program. Hence it is the first method that will get executed by… Read More

Start Your Coding Journey Now!