Skip to content

Category Archives: Algorithms

Given an array arr[] of size N, the task is to minimize the  cost to sort the array by sorting any unsorted subarray where the… Read More
Given an array arr[], of size N and an integer S, the task is to find the minimum operations to make the sum of the… Read More
Given integers N and K, the task is to check if it is possible to divide N numbers into K groups such that all the… Read More
Simple Moving Average is the average obtained from the data for some t period of time . In normal mean, its value get changed with… Read More
It is given to you that on 1st January 2001 it was Monday. Let’s call a year as Geeky if the 1st January of that… Read More
Given a N x N matrix, such that the element at the index [N/2, N/2] is missing, the task is to find the maximum integer… Read More
Given an array of strings arr[], the task is to find the smallest string which contains all the characters of the given array of strings.… Read More
Given an integer N, the task is to print the ways to get the sum N by repeatedly throwing a dice. Input: N = 3Output: 1… Read More
Given an array arr[] of size N and an integer P (P < N), the task is to find the original array from the array… Read More
Given a matrix and the task is to check matrix is an involutory matrix or not. Involutory Matrix: A matrix is said to be an involutory… Read More
Given a matrix and the task is to check matrix is involutory matrix or not. Involutory Matrix: A matrix is said to be involutory matrix if… Read More
Given a matrix and the task is to check matrix is involutory matrix or not. Involutory Matrix: A matrix is said to be involutory matrix if… Read More
Given a matrix and the task is to check matrix is an involutory matrix or not. Involutory Matrix: A matrix is said to be an involutory… Read More
Given a matrix and the task is to check matrix is involutory matrix or not.  Involutory Matrix: A matrix is said to be involutory matrix… Read More
Given an integer N which depicts the number of stairs, the task is to count the number of ways to reach Nth stair by taking… Read More