## Sum of products of all combination taken (1 to n) at a time

Given N, we have to find the sum of products of all combination taken 1 to N at a time. In simple words, we have… Read More »

Given N, we have to find the sum of products of all combination taken 1 to N at a time. In simple words, we have… Read More »

Newman-Conway numbers is the one which generates the following integer sequence. 1 1 2 2 3 4 4 4 5 6 7 7….. and follows… Read More »

Given n integers. The task is to minimize the sum of multiplication of all the numbers by taking two adjacent numbers at a time and… Read More »

Given a number n then print n terms of fibonacci series in reverse order. Examples: Input : n = 5 Output : 3 2 1… Read More »

Given two strings s1, s2 and K, find the length of the longest subsequence formed by consecutive segments of at least length K. Examples: Input… Read More »

Given an array of size n and a positive integer k, find the maximum number of trailing zeros in the product of the subsets of… Read More »

Given an integer n and an array of positions ‘position[]’ (1

Given two strings s1 and s2(call letters in uppercase). Check if it is possible to convert s1 to s2 by performing following operations. 1. Make… Read More »

Given a binary string of 0s and 1s. The task is to find the length of substring which is having a maximum difference of number… Read More »

A person starts walking from position X = 0, find the probability to reach exactly on X = N if she can only take either… Read More »

Given N, count the number of ways to express N as sum of 1, 3 and 4. Examples: Input : N = 4 Output :… Read More »

Given an array and a number k, find the largest sum of contiguous array in the modified array which is formed by repeating the given… Read More »

We call decimal number a monotone if: Write a program which takes positive number n on input and returns number of decimal numbers of length… Read More »

Given an Array of Integers and an Integer value k, find out k sub-arrays(may be overlapping) which have k maximum sums. Examples: Input : arr… Read More »

Given a number N, find the number of ways you can draw N chords in a circle with 2*N points such that no 2 chords… Read More »