## Check if item can be measured using a scale and some weights

Given some weights of masses a0, a1, a2, …, a100, a being an integer, and a weighing scale where weights can be put on both… Read More »

- Write a program to print all permutations of a given string
- Given an array A[] and a number x, check for pair in A[] with sum as x
- Count all possible paths from top left to bottom right of a mXn matrix
- Level order traversal in spiral form
- Recursion
- Print all possible words from phone digits
- Print all possible combinations of r elements in a given array of size n
- Recursively remove all adjacent duplicates
- Reverse a stack using recursion
- Josephus problem | Set 1 (A O(n) Solution)
- Sort a stack using recursion
- Print all subsequences of a string
- Given a string, print all possible palindromic partitions
- Find n-th lexicographically permutation of a string | Set 2
- Minimum steps to reach a destination
- Sort a stack using a temporary stack
- Recursive Practice Problems with Solutions
- Combinational Sum
- Recursive Bubble Sort
- Practice Questions for Recursion | Set 1
- Flood fill Algorithm - how to implement fill() in paint?
- Check if a number is Palindrome
- Backtracking | Introduction
- Tail Recursion
- How to print maximum number of A's using given four keys
- Word Break Problem using Backtracking
- Function to copy string (Iterative and Recursive)
- Program for Sum the digits of a given number
- Diagonal Sum of a Binary Tree
- Program for Chocolate and Wrapper Puzzle

Given some weights of masses a0, a1, a2, …, a100, a being an integer, and a weighing scale where weights can be put on both… Read More »

Given a K-ary tree, where each node is having K children and each edge has some weight. All the edges i.e. K, that goes from… Read More »

Given a string str comprising of characters (, ), {, }, [, ] and ?. The task is to find the total number of balanced… Read More »

Given three integers N, A and B, the task is to find whether N can be represented as sum of A’s and B’s. Examples: Input:… Read More »

Given three integers N, A and B, the task is to find whether N is divisible by any number that contains only A and B… Read More »

Given integers i, j, k and n where (i, j) is the initial position of the Knight on a n * n chessboard, the task… Read More »

Given a string, find minimum no of swaps(not necessarily adjacent) to convert it into a string which have similar characters side by side. Examples: Input… Read More »

A cricket player has to score N runs, with condition he can take either 1 or 2 runs only and consecutive runs should not be… Read More »

Given two numbers A and B, A<=B, the task is to find the number of unary numbers between A and B, both inclusive. Unary Number:… Read More »

Given a natural number n, print all the subsets of the set without using any array or loop (only the use of recursion is allowed).… Read More »

Given n companies and m oil mines having values, the task is to distribute the mines among n companies in a fair manner. That is… Read More »

Given a chessboard of size 8 x 8 and the current position of Mirandote. All the rules of this chess game are same but the… Read More »

Given the root nodes of the two binary search trees. The task is to print 1 if the two Binary Search Trees are identical else… Read More »

Given an array. The task is to determine whether an array is a palindrome or not using recursion. Examples: Input: arr[] = {3, 6, 0,… Read More »

Given two numbers N and M. The task is to find the product of the 2 numbers using recursion. Note: The numbers can be both… Read More »