## Kronecker Product of two matrices

Given a matrix A and a matrix B, their Kronecker product C = A tensor B, also called their matrix direct product, is an matrix.… Read More »

Given a matrix A and a matrix B, their Kronecker product C = A tensor B, also called their matrix direct product, is an matrix.… Read More »

You are given an array on n-elements. An extrema is an elements which is either greater than its both of neighbors or less than its… Read More »

If most of the elements in the matrix are zero then the matrix is called a sparse matrix. It is wasteful to store the zero… Read More »

Given an array print sum of the pairwise consecutive elements. Examples: Input : 8, 5, 4, 3, 15, 20 Output : 13, 9, 7, 18,… Read More »

Given an array of integers, the task is to find whether it’s possible to construct an integer using all the digits of these numbers such… Read More »

Given an unsorted array A of N integers, Return maximum value of f(i, j) for all 1 ≤ i, j ≤ N. f(i, j) or… Read More »

Given two equally sized arrays (A, B) and N (size of both arrays). A sum combination is made by adding one element from array A… Read More »

We all know about Stacks also known as Last-In-First-Out(LIFO) structures. Stack primarily has two main operation namely push and pop, where push inserts an element… Read More »

Given an array of N distinct elements where elements are between 1 and N both inclusive, check if it is stack-sortable or not. An array… Read More »

Given an array of n elements. Our task is to write a program to rearrange the array such that elements at even positions are greater… Read More »

Given an array of n integers. Find the minimum distance between any two occurrences of the minimum integer in the array. Examples: Input : arr[]… Read More »

Given a circular array of size n containing integers from 1 to n. Find the last element that would remain in the list after erasing… Read More »

Given an array arr[] of size n containing integers. The problem is to find the length of the longest sub-array having sum equal to the… Read More »

Given multiple numbers and a number n, the task is to print the reminder after multiply all the number divide by n. Examples: Input :… Read More »

Given an array of rational numbers, the task is to find the LCM of these numbers. Examples: Input : vect[] = {2/7, 3/14, 5/3} Output… Read More »