Posts from C++

Find elements which are present in first array and not in second in C++

By Anubhav Bansal

We are given two arrays and we have to find numbers that are present in the first array, but not present in the second array. Elements that are present in the first array and not i.... Read More

Use push_back for vector pair in C++

By Anubhav Bansal

A vector is a dynamic array that can resize according to the elements inserted or deleted inside the container. In this tutorial, we will be learning how to use push_back for vecto.... Read More

partial_sort() function in C++ Algorithm

By HARISHWAR REDDY MUNUKUNTLA

In this tutorial, we will learn how to perform the partial_sort() function in C++ with the corresponding code. The partial_sort() function is same as the sort() function but the di.... Read More

C++ program to add two polynomial using linked list

By HARISHWAR REDDY MUNUKUNTLA

Hello everyone! In this tutorial, we will learn how to write a C++ program to add two polynomial using a linked list with corresponding code. Linked list: Linked List is a linear d.... Read More

How to simplify the directory path in C++

By Amit Razdan

In this post, we will learn about how to simplify the directory path using the C++ programming language. This post will help you to understand the process of simplifying the direct.... Read More

C++ program to find number of digits in Nth Fibonacci number.

By Anubhav Bansal

Fibonacci numbers follow the sequence of adding two previous numbers 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, …….. Find the number of digits Nth Fibonacci no If we input 3.... Read More

How to create mergeable stack in C++

By Titichh Mishra

Hi there. Today we will see how to merge two stacks in O(1) time complexity using C++. Since we have to solve this in such an efficient way, we won’t be able to use arrays he.... Read More

C++ program to check if a singly linked list is palindrome.

By Titichh Mishra

Today we are going to see if a singly linked list is a palindrome or not in C++. A palindrome number is a number that looks the same in both backward and forwards. Examples are 100.... Read More

Related Posts