Posts from C++

C++ program to find unique words in a file

By Titichh Mishra

Hi there. Today we are going to see how to find unique words in a text file. For this problem, we will need to use a library named fstream, another standard C++ library. It has it&.... Read More

C++ program to print form middle of linked list

By Titichh Mishra

Hi there. Today we will see how to print the middle-most element of linked list in C++. There are multiple methods to solve this problem. You can count the number of elements by pa.... Read More

Find length of a linked list ( Recursive) in C++

By Titichh Mishra

Hi there. Today we are going to see how to find the length of a linked list using recursion in C++. Mainly there are two methods for it. Iterative method and recursive method. We a.... Read More

Comparing sort(), partial_sort() and nth_element() sort() in C++ STL

By Nishant Saxena

In this post, we will be discussing what are the differences between Sort, Partial Sort, and nth_element Sort in C++. sort in C++ This is function provided in C++ STL, which sort t.... Read More

Convert a Singly Linked List to an Array in C++

By Manan Gupta

The task is to convert a Singly Linked List to an Array in C++. A simple example to explain the task can be- input: 10->20->50->40->35->NULL output: 10 20 50 40 35 T.... Read More

Create a single colored blank image in C++ using OpenCV

By Nishant Saxena

We are going to see how to create an image and assign it any single color value in C++ using OpenCV. OpenCV is an open-source C++ library for Image processing and computer vision. .... Read More

Maximum edges that can be added to DAG so that is remains DAG in C ++

By Aniruddha Ghosh

In this article, we will discuss Maximum edges that can be added to DAG so that remains DAG in C ++. You are given a directed acyclic graph(DAG)  and you have to find the maximum .... Read More

Find length of a loop in Linked List using map in C++

By Nishant Saxena

In this tutorial, we will learn how to find length of a loop in Linked List in C++ using map. The objective is to check if in a given Linked List there is a loop if the loop is pre.... Read More

Related Posts