## Combinations in a String of Digits

Given an input string of numbers, find all combinations of numbers that can be formed using digits in the same order. Examples: Input : 123… Read More »

- Recursively Reversing a linked list (A simple implementation)
- Print the last k nodes of the linked list in reverse order
- Check if a word exists in a grid or not
- Program to check if an array is palindrome or not using Recursion
- Print all permutations of a string in Java
- Generating subarrays using recursion
- Recursive program to print all subsets with given sum
- Count ways to reach a score using 1 and 2 with no consecutive 2s
- Java Program to print distinct permutations of a string
- Sum of nodes at maximum depth of a Binary Tree | Set 2
- Count all Grandparent-Parent-Child Triplets in a binary tree whose sum is greater than X
- Generating all possible Subsequences using Recursion
- Printing all subsets of {1,2,3,...n} without using array or loop
- Check whether the two Binary Search Trees are Identical or Not
- Print all paths from top left to bottom right in a matrix with four moves allowed
- Count all possible position that can be reached by Modified Knight
- Find Nth term (A matrix exponentiation example)
- Print all subsequences of a string using ArrayList
- Longest Ordered Subsequence of Vowels
- Algorithms | Recurrences | Set 1
- Count of Numbers in a Range divisible by m and having digit d in even positions
- Maximum length of segments of 0's and 1's
- Find the value of ln(N!) using Recursion
- Number of Binary Strings of length N with K adjacent Set Bits
- Double Knapsack | Dynamic Programming
- Split the array into equal sum parts according to given conditions
- Check if the given binary tree has a sub-tree with equal no of 1's and 0's | Set 2
- Product of 2 numbers using recursion | Set 2
- Number of balanced bracket expressions that can be formed from a string
- Recursive Program for Binary to Decimal

Given an input string of numbers, find all combinations of numbers that can be formed using digits in the same order. Examples: Input : 123… Read More »

Given an area of N X M. You have infinite number of tiles of size 2i X 2i, where i = 0, 1, 2,… so… Read More »

Given a set of characters generate all possible passwords from them. This means we should generate all possible permutations of words using the given characters,… Read More »

Given a positive integer n, print all n-bit binary numbers having more 1’s than 0’s for any prefix of the number. Examples: Input : n… Read More »

Given a binary tree, we need to write a program to print all leaf nodes of the given binary tree from left to right. That… Read More »

Tower of Hanoi is a mathematical puzzle. Traditionally, It consists of three poles and a number of disks of different sizes which can slide onto… Read More »

m-th summation of first n natural numbers is defined as following. If m > 1 SUM(n, m) = SUM(SUM(n, m – 1), 1) Else SUM(n,… Read More »

Given a number n, we need to print all n-digit binary numbers with equal sum in left and right halves. If n is odd, then… Read More »

Given coordinates of a source point (x1, y1) determine if it is possible to reach the destination point (x2, y2). From any point (x, y)… Read More »

Given a string, we have to find out all subsequences of it. A String is a subsequence of a given String, that is generated by… Read More »

We are given a string S, we need to find count of all contiguous substrings starting and ending with same character. Examples : Input :… Read More »

Given two integers x and n, we need to find number of ways to express x as sum of n-th powers of unique natural numbers.… Read More »

Given a string of digits, determine whether it is a ‘sum-string’. A string S is called a sum-string if a rightmost substring can be written… Read More »

Given a string you need to print all possible strings that can be made by placing spaces (zero or one) in between them Examples :… Read More »

Mutual recursion is a variation recursion. Two functions are called mutually recursive if the first function makes a recursive call to the second function and… Read More »