## Minimum number operations required to convert n to m | Set-2

Given two integers n and m and a and b, in a single operation n can be multiplied by either a or b. The task… 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
- Recursive program to print all subsets with given sum
- Count ways to reach a score using 1 and 2 with no consecutive 2s
- 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
- Split the array into equal sum parts according to given conditions
- Check if the given binary tree has a sub-tree with equal no of 1's and 0's | Set 2
- 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

Given two integers n and m and a and b, in a single operation n can be multiplied by either a or b. The task… Read More »

This article is aimed at giving a recursive implementation for pattern printing. Simple triangle pattern: filter_none edit close play_arrow link brightness_4 code // C++ code… Read More »

Given a tree having every node’s value as either 0 or 1, the task is to find whether the given binary tree contains any sub-tree… Read More »

Given two integers A and B, the task is to calculate 22A % B. Examples: Input: A = 3, B = 5 Output: 1 223… Read More »

Given three integers X, N and M. The task is to find XXX…(N times) % M where X can be any digitfrom the range [1,… Read More »

Given two integers N and K, the task is to count the number of ways to make a binary string of length N such that… Read More »

Given a positive integer number N. The task is to generate all the binary strings of N bits. These binary strings should be in ascending… Read More »

Given an array arr[] and an integer K, the task is to find out the minimum product of a subsequence where adjacent elements of the… Read More »

Given an integer n, the task is to find the sum of the series 11 + 22 + 33 + ….. + nn using recursion.… Read More »

Given a value n, the task is to find sum of the series (1*2) + (2*3) + (3*4) + ……+ n terms Examples: Input: n… Read More »

Given an array ‘arr’ containing the weight of ‘N’ distinct items, and two knapsacks that can withstand ‘W1’ and ‘W2’ weights, the task is to… Read More »

Given a range [L, R] and two positive integers N and M. The task is to count the numbers in the range containing only non-zero… Read More »

Given a stack s, the task is to print the elements of the stack from bottom to top, such that the elements are still present… Read More »

Given two strings A and B of equal size. Two strings are equivalent either of the following conditions hold true: 1) They both are equal.… Read More »

Given a singly linked list, remove all the nodes which have a greater value on the right side. Examples: a) The list 12->15->10->11->5->6->2->3->NULL should be… Read More »