## Merge Sort Using inplace_merge() Function

In this post, solve the merge sort using the inplace_merge() function. Given an arrayA[] of size N, the task is to sort the array in increasing order using In-Place Merge Sort. Example: Steps To Solve: The objective is to merge the sorted arrays in O(1) space…

## Minimum Cost To Convert A String To Another By Replacing Blanks In C++

Minimum Cost To Convert A String To Another By Replacing Blanks In C++ Let’s see through an example. Given two strings, s1 and s2, both of length N, with lower-case alphabets. The strings s1 and s2 may include some blanks…

## Check If The Given String Can Be Made Palindrome By Removing The Only A Single Type Of Character

Check If The Given String Can Be Made Palindrome By Removing The Only A Single Type Of Character Let’s see below example. The aim is to determine whether a string S can be rendered palindrome by eliminating any number of…

## Minimize Operations To Make One String Contain Only Characters From Other String In C++

Minimize Operations To Make One String Contain Only Characters From Other String In C++, How to evaluate let’s see. Given two strings S1 and S2, both of which contain only lower case English alphabets, the goal is to reduce the…

## Comparing Two Strings Using Pointers In C++

In this post, I am going to solve the problem of comparing two strings using pointers In C++. Examples: The idea is to dereference given pointers, compare values and advance both of them. Join Our Community Join our WhatsApp Group…

## Program to reverse an array using a pointer In C++

In this post here we discuss writing a program to reverse an array using a pointer in C++. In this program, we make use of the * operator. The * (asterisk) operator denotes the value of a variable. The *…

## Sum Of Digit Of A Number Using Recursion Through C++ Programming

In this post, I will discuss Sum Of Digit Of A Number Using Recursion through C++ Programming. Given a number, we need to find sum of its digits using recursion. Examples: Now, the step by step process for a better…

## Write A Program To Check Entered Number Is A Spy Number Or Not Through C++ Program

In this post I am going to discuss a program called, Entered Number A Spy Number Or Not Through C++ Program. What is a Spy Number? When you enter a natural number like 1124 then sum up its digit is…