## Maximum Sum Decreasing Subsequence

Given an array of N positive integers. The task is to find the sum of maximum sum decreasing subsequence(MSDS) of the given array such that… Read More »

Given an array of N positive integers. The task is to find the sum of maximum sum decreasing subsequence(MSDS) of the given array such that… Read More »

Given an array of N integers, find the length of the longest subsequence of a given sequence such that all elements of the subsequence are… Read More »

Given a matrix of size N X N of integers. The task is to find the number of decreasing path in the matrix. You are… Read More »

Given sum of digits and sum of square of digits . Find the smallest number with given sum of digits and sum of the square… Read More »

Given a positive ineteger n. The task is to find the sum of product of consecutive binomial coefficient i.e nC0*nC1 + nC1*nC2 + ….. +… Read More »

Given an array A of N integers and a positive integer K. Only three operations can be performed on this array: 1) Replace an integer… Read More »

Given a string S composed of 0 and 1. Find the minimum splits such that the substring is a binary representation of the power of… Read More »

Given a Binary Matrix of size N X M, the task is to answer Q queries of the following type; Query(a, b): Find the number… Read More »

Given a sequence of words, and a limit on the number of characters that can be put in one line (line width). Put line breaks… Read More »

Given a positive integer n. The task is to find the sum of the product of r and rth Binomial Coefficient. In other words find:… Read More »

Given two positive integers N and K. The task is to find the number of arrays of size N that can be formed such that… Read More »

Given an array of n positive integers. Find a minimum positive element to be added to one of the indexes in the array such that… Read More »

Given a binary tree, the task is to find the distance between two keys in a binary tree, no parent pointers are given. The distance… Read More »

Suppose there is a circular road. There are n petrol pumps on that road. You are given two array, a[] and b[], and a positive… Read More »

Print the Fibonacci sequence. The first Fibonacci numbers are: Output: 0 1 1 2 3 5 8 13 21 34 How to print using 2… Read More »