## Minimum cost to make two strings identical by deleting the digits

Given two strings X and Y consisting of only digits ‘0’ to ‘9’. Find minimum cost required to make the given two strings identical. Only… Read More »

## Qualcomm Interview Experience | Set 17 (On-Campus)

The test based on HirePro Examination. They had outsourced the first round to HirePro and had asked them for results on the basis of which… Read More »

## Program for Identity Matrix

Introduction to Identity Matrix : The dictionary definition of an Identity Matrix is a square matrix in which all the elements of the principal or… Read More »

## Static import in Java

In Java, static import concept is introduced in 1.5 version. With the help of static import, we can access the static members of a class… Read More »

## Implementing a Superellipse

What is a superellipse A superellipse, also known as a Lamé curve after Gabriel Lamé, is a closed curve resembling the ellipse, retaining the geometric… Read More »

## mbtowc function in C

Convert multibyte sequence to wide character. The multibyte character pointed by pmb is converted to a value of type wchar_t and stored at the location… Read More »

## Numpy.prod() in Python

numpy.prod() returns the product of array elements over a given axis. Syntax: numpy.prod(a, axis=None, dtype=None, out=None, keepdims=) Parameters a : array_like Its the input data.… Read More »

## Minimum initial vertices to traverse whole matrix with given conditions

We are given a matrix that contains different values in its each cell. Our aim is to find the minimal set of positions in the… Read More »

## Maximum size subset with given sum

This is an extended version of subset sum problem. Here we need to find size of maximum size subset whose sum is equal to given… Read More »

## Find n-th term in series 1 2 2 3 3 3 4 4 4 4….

Given series 1 2 2 3 3 3 4 4 4 4 …., find n-th term of the series. The “pattern” is obvious. There is… Read More »

## Python Regex to extract maximum numeric value from a string

Given an alphanumeric string, extract maximum numeric value from that string. Alphabets will only be in lower case. Examples: Input : 100klh564abc365bg Output : 564… Read More »

## Program to print hollow rectangle or square star patterns

Hollow rectangle star pattern : The task is print below hollow pattern of given dimension. ******************** * * * * * * * * ********************… Read More »

## Number of elements greater than modified mean in matrix

Normally mean of matrix is the average of all elements present in matrix. Consider a modified mean as floor of mean of row-wise minimum and… Read More »

## Cyclic Redundancy Check in Python

Prerequisites: Know about Cyclic redundancy, Socket Programming What is CRC? CRC or Cyclic Redundancy Check is a method of detecting accidental changes/errors in the communication… Read More »

## getline() function and character array

Prerequisite: getline(string) in C++ In C++, stream classes support line-oriented functions, getline() and write() to perform input and output functions respectively. getline() function reads whole… Read More »