## Convert an array into another by repeatedly removing the last element and placing it at any arbitrary index

Convert an array into another by, Suppose there are two arrays A[] and B[], both developed of a permutation of first N natural numbers, then the task is to count the minimum number of times the last array element is required to be shifted to any arbitrary position…

## Minimize the length of the string by removing suffixes and prefixes of the same characters

Minimize the length of the string by removing suffixes and prefixes of the same characters: Suppose a string S has a length of N developed only characters ‘a’, ‘b’, and ‘c’, then the task is to minimize the length of the given string, by doing the following operations…

## String from prefix and suffix of given two strings

Given two strings a and b, form a new string of length l, from these strings by combining the prefix of string a and suffix of string b. How to solve String from prefix and suffix of given two strings: 1. Get first l letters from…

## Program To Find The Roots Of Quadratic equation

Given a quadratic equation in the form ax2 + bx + c, find roots of it.  Examples Of Quadratic Equation: Below is direct formula for finding roots of quadratic equation. Here we discuss about following cases: Here implementation of above formula:…

## Remove all values from a list present in another list

The above problem is describe that, removing all the values present in another list  i.e we are given some of the invalid numbers in one list which needs to be get ridden from the original list. So, lets’ discuss various…