Farhan Muhamed has Published 58 Articles

C++ Program to Implement Next_Permutation in STL

Farhan Muhamed

Farhan Muhamed

Updated on 09-May-2025 15:38:15

367 Views

Next permutation is an algorithmic operation that rearranges the elements of a range into the next lexicographically greater permutation. In this article, we will learn how to use the next_permutation() function from the Standard Template Library (STL) in C++. What is Next Permutation? The Next Permutation is an operation ... Read More

C++ Program to Implement Multiset in STL

Farhan Muhamed

Farhan Muhamed

Updated on 07-May-2025 18:29:43

220 Views

A multiset is an associative container that stores data in a sorted order in such a way that it allows duplicate values in the set. In this article, we will learn how to use a multiset from the Standard Template Library (STL) in C++. What is Multiset? Multiset is ... Read More

C++ Program to Implement Multimap in STL

Farhan Muhamed

Farhan Muhamed

Updated on 07-May-2025 18:29:29

392 Views

A multimap is an associative container that stores elements in a key-value pair format, where multiple values can share the same key. In this article, we will learn how to use a multimap from the Standard Template Library (STL) in C++. What is Multimap? Multimap is a sorted associative ... Read More

C++ Program to Implement Map in STL

Farhan Muhamed

Farhan Muhamed

Updated on 07-May-2025 18:29:15

4K+ Views

A map is an associative container that stores elements in a key-value pair format. Each element has a unique key and a corresponding mapped value. No two mapped values can have the same key. In this article, we will learn how to use a map from the Standard Template ... Read More

C++ Program to Implement List in STL

Farhan Muhamed

Farhan Muhamed

Updated on 06-May-2025 18:21:17

321 Views

A List in C++ STL library is hardcoded implementation of a doubly linked list data structure. In this article, we will learn how to implement and use a list in C++ . What is List? List is a doubly linked container provided in the C++ STL library, in which ... Read More

C++ Program to Implement Forward_List in STL

Farhan Muhamed

Farhan Muhamed

Updated on 06-May-2025 18:20:36

225 Views

Forward List is a type of singly linked list available in the C++ STL (Standard Template Library). In this artcile, we will learn how to use forward_list from C++ STL library. What is Forward List? Forward list is a linear data structure which allows traversal only in one ... Read More

C++ Program to Implement Deque in STL

Farhan Muhamed

Farhan Muhamed

Updated on 06-May-2025 18:20:01

385 Views

Deque or Double Ended Queue is a special type of queue where we can insert and delete elements from both front and back. In this article, we will learn how to use deque from C++ STL (Standard Template Library). What is Deque? Deque is a linear data structure in ... Read More

C++ Program to Check Whether Graph is DAG

Farhan Muhamed

Farhan Muhamed

Updated on 05-May-2025 18:29:48

2K+ Views

DAG stands for Directed Acyclic Graph. It is a special type of graph where all edges are directed and there are no cyclic connections of edges. In this article, we will discuss how to check whether a graph is a DAG using Kahn’s algorithm (BFS based topological sorting). What ... Read More

C++ Program to Implement Graph Structured Stack

Farhan Muhamed

Farhan Muhamed

Updated on 05-May-2025 18:29:34

554 Views

In this article, we will learn what is graph structured stack and how to implement it in a C++ program. What is Graph Structured Stack? Graph structured stack is a directed acyclic graph, where each directed path represents a stack. In this types of stack, the flow of execution ... Read More

C++ Program to Implement Bit Array

Farhan Muhamed

Farhan Muhamed

Updated on 05-May-2025 18:29:04

2K+ Views

Bit array is used to store true/false or yes/no type of values in very less memory. In this article, we will see how to create and use a bit array in C++. What is Bit Array? Bit array is a special array where each element can hold only 0 ... Read More

Advertisements