## Solve the Crossword Puzzle

A 10 x 10 Crossword grid is provided, along with a set of words (or names of places) which need to be filled into the… Read More »

- Backtracking | Introduction
- Recursive program to generate power set
- Flatten a binary tree into linked list
- Find n-th node in Postorder traversal of a Binary Tree
- Reduce a number to 1 by performing given operations
- Recursively Reversing a linked list (A simple implementation)
- Modular exponentiation (Recursive)
- Count ways to reach a score using 1 and 2 with no consecutive 2s
- Count all possible position that can be reached by Modified Knight
- Check for balanced parenthesis without using stack
- Water Jug Problem using Memoization
- Program to check if an array is palindrome or not using Recursion
- Memoization (1D, 2D and 3D)
- How will you print numbers from 1 to 100 without using loop? | Set-2
- Generating subarrays using recursion
- Printing all subsets of {1,2,3,...n} without using array or loop
- Print all distinct integers that can be formed by K numbers from a given array of N numbers
- Print all the combinations of a string in lexicographical order
- Maximum length of segments of 0's and 1's
- Find Nth term (A matrix exponentiation example)
- Check whether the two Binary Search Trees are Identical or Not
- Number of handshakes such that a person shakes hands only once
- Java 8 | Arrays parallelSort() method with Examples
- Check if N can be represented as sum of integers chosen from set {A, B}
- Count Unary Numbers in a Range
- Check if item can be measured using a scale and some weights
- Check if N is divisible by a number which is composed of the digits from the set {A, B}
- Product of 2 numbers using recursion | Set 2
- Number of balanced bracket expressions that can be formed from a string
- Generating all possible Subsequences using Recursion

A 10 x 10 Crossword grid is provided, along with a set of words (or names of places) which need to be filled into the… Read More »

Given a string, write a recursive program to reverse it. Recommended: Please try your approach on {IDE} first, before moving on to the solution. Method… Read More »

Given a 3 x n board, find the number of ways to fill it with 2 x 1 dominoes. Example 1 Following are all the… Read More »

Given an array and two numbers M and K. We need to find sum of max M subarrays of size K (non-overlapping) in the array.… Read More »

Given a rectangular matrix M[0…n-1][0…m-1], and queries are asked to find the sum / minimum / maximum on some sub-rectangles M[a…b][e…f], as well as queries… Read More »

Write a removeDuplicates() function which takes a list sorted in non-decreasing order and deletes any duplicate nodes from the list. The list should only be… Read More »

Given an array of integers, a number and a maximum value, task is to compute the maximum value that can be obtained from the array… Read More »

Euler tour tree (ETT) is a method for representing a rooted tree as a number sequence. When traversing the tree using Depth for search(DFS), insert… Read More »

When adding two binary numbers by hand we keep the carry bits in mind and add it at the same time. But to do same… Read More »

Given an N-ary tree, find sum of all elements in it. Example : Input : Above tree Output : Sum is 536 Recommended : Please… Read More »

Given an integer ‘n’, print the first ‘n’ terms of the Moser-de Bruijn Sequence. The Moser-de Bruijn sequence is the sequence obtained by adding up… Read More »

Given a binary tree, find the vertical width of the binary tree. Width of a binary tree is the number of vertical paths. Examples: Input… Read More »

Given a Linked List, task is to check whether the Linked List is sorted in Descending order or not? Examples : Input : 8 ->… Read More »

Given a queue, write a recursive function to reverse it. Standard operations allowed : enqueue(x) : Add an item x to rear of queue. dequeue()… Read More »

Given three positive integer n, s and k. The task is to print all possible sequence of length s, starting with n and the absolute… Read More »