## Minimum number of substrings the given string can be splitted into that satisfy the given conditions

Given a string str and a string array arr[], the task is to find the minimum count of substrings this can be splitted into such… Read More »

- Check if given Preorder, Inorder and Postorder traversals are of same tree | Set 2
- Number of subsets with zero sum
- Total number of possible Binary Search Trees using Catalan Number
- Flip minimum signs of array elements to get minimum sum of positive elements possible
- Merge two BSTs with constant extra space
- Minimum number of cubes whose sum equals to given number N
- Find the node with maximum value in a Binary Search Tree using recursion
- Divide the array in K segments such that the sum of minimums is maximized
- Burn the binary tree starting from the target node
- Number of ways to choose elements from the array such that their average is K
- Subset with sum closest to zero
- Sum of maximum of all subarrays | Divide and Conquer
- Programs to print Triangle and Diamond patterns using recursion
- Maximum sum of non-overlapping subarrays of length atmost K
- Print Bottom-Right View of a Binary Tree
- Algorithms Sample Questions | Set 3 | Time Order Analysis
- Sort the Queue using Recursion
- Print Binary Search Tree in Min Max Fashion
- Maze With N doors and 1 Key
- Add one to a number represented as linked list | Set 2
- Recursive program to find all Indices of a Number
- Reverse tree path using Queue
- Maximum number of given operations to remove the entire string
- Maximum Sequence Length | Collatz Conjecture
- Generate all unique partitions of an integer | Set 2
- Reverse even elements in a Linked List
- Program to Calculate e^x by Recursion
- Cost Based Tower of Hanoi
- Cartesian tree from inorder traversal | Segment Tree
- Optimal Strategy for a Game | Set 3

Given a string str and a string array arr[], the task is to find the minimum count of substrings this can be splitted into such… Read More »

Write a program in C++ to print an Array using Recursion Using static variable: Static variables have a property of preserving their value even after… Read More »

Given a linked list which represents an integer number where each node is a digit of the represented integer. The task is to add a… Read More »

Given an array arr[] and an integer K. The task is to divide the array into K parts ( subarray ) such that the sum… Read More »

The basic version of the Tower of Hanoi can be found here. It is a twisted Tower of Hanoi problem. In which, all rules are… Read More »

Given 3 integers N, M and K. The task is to find maximum P such that N * KP <= M . Examples: Input :N… Read More »

Given an integer N. The task is to find the number in the range from 1 to N-1 which is having the maximum number of… Read More »

Given a Binary Tree having positive and negative nodes, the task is to find the maximum sum level in it and print the maximum sum.… Read More »

Consider a row of n coins of values v1 . . . vn, where n is even. We play a game against an opponent by… Read More »

Given a string str, the task is to print all the permutations of str. A permutation is an arrangement of all or part of a… Read More »

Given an N * N binary maze where a 0 denotes that the position can be visited and a 1 denotes that the position cannot… Read More »

Given a linked list, the task is to reverse the contiguous even elements and print the updated linked list. Input: 1 -> 2 -> 3… Read More »

Given two integers M and K, the task is to find the Kth smallest number with digit sum as M. Examples: Input: M = 5,… Read More »

Given an array of distinct integer A, the task is to count the number of possible permutations of the given array A[] such that the… Read More »

Given a Binary Tree, print Bottom-Right view of it. The Bottom Right view of a Binary Tree is a set of nodes visible when the… Read More »