Subarray Sum Equals K in Linear Time Complexity [New] In this post, we will make a C++ program to print the total number of subarray sums equals k and another program based on the idea of a cumulative su…
Multiply Strings in C++ In this program, we are going to multiply two strings in c++. We will not use any built-in function to convert a string to an integer. Pre-requisit…
Minimum In Subarray Segment Tree #include<bits/stdc++.h> using namespace std; void BulidTree(int * arr,int start,int end,int i,int * tree) { if(start==end) { tree…
Palindrome Program in C++ using for loop In this post, we are going to make a palindrome program in c++ using for loop and recursion. We will make a program that will check whether the given…
Prime Number Program in Cpp using for loop In this program, we are going to make a c++ program to check prime numbers using for loop and then we also make this program using recursion. How d…
Binary Tree Traversal in C++ Binary tree traversal: It is the process of visiting (or printing) all the nodes of the binary tree. There are three ways for tree traversal that are…
Menu Driven Program for Singly Linked List in C++ In this post, we are going to make a Menu Driven Program for Singly Linked List in C++ to perform the following operations: Traversal : Displ…
Subtraction of two matrices in c++ In this program, we are going to make a program for subtraction of two matrices in c++. To make this program, we initialize three matrices A, B &am…
Linked Lists Data Structure in C++ Linked Lists A Linked list is a linear data structure, where the linear order is given by means of pointers. Each element of the linked list is known…
Menu-Driven Program for Array Operations in C++ In this program, we are going to make a menu-driven program that will perform some important array operations. We will make a different function for …
Menu Driven C++ Program for a Simple Calculator Table Of Contents Write a menu-driven program to perform arithmetic operations in c++ Menu-driven program in c++ for a simple …
C++ program to print prime numbers [New] In this program, we will make a c++ program to print prime numbers upto n. Prime numbers up to n Prime numbers between 1 to 100 Pri…
C++ Program for Cricket Match In this post, we will make a c++ program for a cricket match. You can also download it. Vipul Khokhar makes this post. Table of Contents …
How to Reverse an Array in C++ using Functions In this post, we will make a program to reverse an array in c++ using Functions which takes all the elements of the array using for loop from the use…