Posts from C++

How to check if a given string is binary or not in C++

By Anurag Tiwari

In this tutorial, we will learn how to check if a given string is binary or not in C++. This problem can be considered as a subset of string problems in which we check for the pres.... Read More

Find the repeating and missing number in an array(C++)

By Prayas Sambhare

In this post, we are going to find the repeating and missing number in an array in C++. It is a famous question about array implementation. Let us understand the problem first. Und.... Read More

Stock Span Problem in C++

By Prayas Sambhare

Hello! In this post, we will study the stock span problem with the help of the C++ program. Let us understand the problem first. The stock span problem is a financial problem. Ther.... Read More

Naming Conventions for member variables in C++

By Tanu Kumari

In this tutorial, we will discuss C++ Naming Conventions for member variables and what are the benefits of following the naming convention. Firstly, Learn about the Naming Conventi.... Read More

Knuth-Morris-Pratt (KMP) Algorithm in C++

By Prayas Sambhare

In this tutorial, we are going to learn about the KMP algorithm in C++ with code implementation. There are other algorithms like Naive Algorithm and Rabin Karp Algorithm which are.... Read More

Longest Proper Prefix Suffix Array in C++ efficient approach(precursor to KMP algorithm)

By Prayas Sambhare

In this tutorial, we are going to learn about how to construct the longest proper prefix suffix array(LPS array) in C++. In this blog, we are going to discuss an efficient solution.... Read More

How to Sort an Array contains 0s,1s ,2s in C++

By Rahul Ranjan

Hello Friends, Today we are going to learn how to sort an array containing elements as 0,1,2 in C++ program. It seems like an easy question but to solve it with an efficient approa.... Read More

Longest Proper Prefix Suffix Array in C++ naive approach

By Prayas Sambhare

Hello friends, today we are going to learn about how to construct the longest proper prefix suffix array (LPS array) in C++. Though for many people, this topic may look completely .... Read More