## Python | Convert a nested list into a flat list

The task is to convert a nested list into a single list in python i.e no matter how many levels of nesting is there in… 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
- Count ways to reach a score using 1 and 2 with no consecutive 2s
- Recursive program to print all subsets with given sum
- 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
- Check if the given binary tree has a sub-tree with equal no of 1's and 0's | Set 2
- Split the array into equal sum parts according to given conditions
- 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

The task is to convert a nested list into a single list in python i.e no matter how many levels of nesting is there in… Read More »

Given an integer N, the task is to find an aggregate sum of all integer partitions of this number such that each partition does not… Read More »

Approved Offer. Bank Of America has visited our college for on campus recruitment . The recruitment consisted of 4 Rounds in total. The recruitment was… Read More »

Given an array A[], we need to find the sum of its elements using Tail Recursion Method. We generally want to achieve tail recursion (a… Read More »

Given two jugs with the maximum capacity of m and n liters respectively. The jugs don’t have markings on them which can help us to… Read More »

Given three numbers a, b and c, we need to find (ab) % c Now why do “% c” after exponentiation, because ab will be… Read More »

Given a number N. The task is to reduce the given number N to 1 in the minimum number of steps. You can perform any… Read More »

Java 8 introduced a new method called as parallelSort() in java.util.Arrays Class. It uses Parallel Sorting of array elements Algorithm of parallelSort() 1. The array… Read More »

There are N number of persons in a party, find the total number of handshake such that a person can handshake only once. Examples: Input… Read More »

Given a string str, print of all the combinations of a string in lexicographical order. Examples: Input: str = “ABC” Output: A AB ABC AC… Read More »

Flood Fill Algorithm is to replace a certain closed or a similarly coloured field with a specified color. The use of the FloodFill algorithm can… Read More »

Prerequisites : Recursion Complexity Analysis Backtracking is an algorithmic-technique for solving problems recursively by trying to build a solution incrementally, one piece at a time,… Read More »

If we take a look at this problem carefully, we can see that the idea of “loop” is to track some counter value e.g. “i=0”… Read More »

Given a function gcd(a, b) to find GCD (Greatest Common Divisor) of two number. It is also known that GCD of three elements can be… Read More »

Given a number num as a string and a number N. The task is to write a program which converts the given number num to… Read More »