##
Check if a number is jumbled or not
July 30, 2017

Write a program to check if a given integer is jumbled or not. A number is said to be Jumbled if for every digit, its… Read More »

July 30, 2017

Write a program to check if a given integer is jumbled or not. A number is said to be Jumbled if for every digit, its… Read More »

Given an array containing n integers. The problem is to find the sum of the elements of the contiguous subarray having the smallest(minimum) sum. Examples:… Read More »

July 29, 2017

Print all permutations of a string keeping the sequence but changing cases. Examples: Input : ab Output : AB Ab ab aB Input : ABC… Read More »

Given an array of positive integers arr[] and a sum x, find all unique combinations in arr[] where the sum is equal to x. The… Read More »

In the article Exact Cover Problem and Algorithm X | Set 1 we discussed the Exact Cover problem and Algorithm X to solve the Exact… Read More »

Write a C program to find sum of all prime numbers between 1 to n. Examples: Input : 10 Output : 17 Explanation : Primes… Read More »

Write a SortedMerge() function that takes two lists, each of which is unsorted, and merges the two together into one new list which is in… Read More »

July 28, 2017

Pell numbers are numbers that are similar to the Fibonacci numbers and are generated by below formula Pn = 2*Pn-1 + Pn-2 with seeds P0… Read More »

July 27, 2017

Given two sequences A, B, find out number of unique ways in sequence A, to form a subsequence of A that is identical to the… Read More »

Given a number n, our task is to find all 1 to n bit numbers with no consecutive 1s in their binary representation. Examples: Input… Read More »

In this post, we’ll discuss Binomial Random Variables. Prerequisite : Random Variables A specific type of discrete random variable that counts how often a particular… Read More »

Given a center of a circle and its radius. our task is to find the neighbors of any point on the discrete circle. Examples: Input… Read More »

July 26, 2017

Zeller’s congruence is an algorithm devised by Christian Zeller to calculate the day of the week for any Julian or Gregorian calendar date. It can… Read More »

July 25, 2017

Given a number of the form 11..1 such that number of digits in it is smaller than 10, find square of the number. Examples: Input… Read More »

Given a number n and we have to find n-th number such that it’s digits only consist 0, 1, 2, 3, 4 or 5. Examples:… Read More »