## Print all subsequences of a string using ArrayList

Given a string str, the task is to print all the sub-sequences of str. A subsequence is a sequence that can be derived from another… Read More »

- Print all permutations of a string in Java
- Check if a word exists in a grid or not
- Print the last k nodes of the linked list in reverse order | Recursive approach
- Java Program to print distinct permutations of a string
- Recursive program to print all subsets with given sum
- Double Knapsack | Dynamic Programming
- Generate all the binary strings of N bits
- Check if given Preorder, Inorder and Postorder traversals are of same tree | Set 2
- Sum of nodes at maximum depth of a Binary Tree | Set 2
- Sum of the series 1^1 + 2^2 + 3^3 + ..... + n^n using recursion
- Count all Grandparent-Parent-Child Triplets in a binary tree whose sum is greater than X
- Print all subsequences of a string using ArrayList
- Minimum number of cubes whose sum equals to given number N
- Print all paths from top left to bottom right in a matrix with four moves allowed
- Find the value of ln(N!) using Recursion
- Programs for printing pyramid patterns using recursion
- Detect cycle in the graph using degrees of nodes of graph
- Longest Ordered Subsequence of Vowels
- Print Stack Elements from Bottom to Top
- Split the array into equal sum parts according to given conditions
- Algorithms | Recurrences | Set 1
- Count number of ways to reach a given score in a Matrix
- Check if the given binary tree has a sub-tree with equal no of 1's and 0's | Set 2
- Recursive Program for Binary to Decimal
- Print path from root to all nodes in a Complete Binary Tree
- Count of Numbers in a Range divisible by m and having digit d in even positions
- Maximum sum of non-overlapping subarrays of length atmost K
- Find the node with maximum value in a Binary Search Tree using recursion
- Modify contents of Linked List - Recursive approach
- Number of subsets with zero sum

Given a string str, the task is to print all the sub-sequences of str. A subsequence is a sequence that can be derived from another… Read More »

Given a binary number as string, find its decimal equivalent. Examples: Input : binary = “101” Output : 5 Input : binary = “1111” Output… Read More »

Given a string with repeated characters, we have to insert a star i.e.” * “ between pair of adjacent identical characters using recursion. Examples: Input… Read More »

Given a range represented by two positive integers l and r and two integers d and m. Find the count of numbers lying in the… Read More »

Question 1: Which of the following is the value of T3(n) where T3(n) is defined as T3(n) = 5*T3(n-1) – 4*T3(n-2) C1*5n + C2*4n C1… Read More »

The problem is to print all the possible paths from top left to bottom right of an mXn matrix with the constraints that from each… Read More »

Given three integers N, M and K. The task is to find the number of ways to fill N positions using M colors such that… Read More »

Given an array and a number, print all subsets with sum equal to given the sum. Examples: Input : arr[] = {2, 5, 8, 4,… Read More »

Given an integer X and a binary tree, the task is to count the number of triplet triplets of nodes such that their sum is… Read More »

Given a string consisting of only vowels, find the longest subsequence in the given string such that it consists of all five vowels and is… Read More »

Given and . The task is to find the number of binary strings of length n out of 2n such that they satisfy f(bit string)… Read More »

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 »