## Count substring of Binary string such that each character belongs to a palindrome of size greater than 1

Given a binary string str, the task is to count the number of substrings of the given string str such that each character of the… Read More »

- Sum of GCD of all possible sequences
- Find the K-th Permutation Sequence of first N natural numbers
- Number of ways to write N as a sum of K non-negative integers
- Longest permutation subsequence in a given array
- Probability of getting K heads in N coin tosses
- Sum of all subsequences of length K
- Count ways to reach the Nth stair using multiple 1 or 2 steps and a single step 3
- Total number of BSTs using array elements
- Count rotations which are divisible by 10
- Number of pairs such that path between pairs has the two vertices A and B
- Count number of triangles possible for the given sides range
- Number of subsets with same AND, OR and XOR values in an Array
- Count numbers in a range with digit sum divisible by K having first and last digit different
- Collision Course | TCS MockVita 2020
- Number of ways to place two queens on a N*N chess-board
- Count of binary strings of length N having equal count of 0's and 1's
- Count numbers less than N containing digits from the given set : Digit DP
- Find the Number of Permutations that satisfy the given condition in an array
- Count of Binary strings of length N having atmost M consecutive 1s or 0s alternatively exactly K times
- Puzzle | Place numbers 1 to 9 in a Circle such that sum of every triplet in straight line is 15
- Count of distinct XORs formed by rearranging two Binary strings
- Find sum of xor of all unordered triplets of the array
- Minimum size binary string required such that probability of deleting two 1's at random is 1/X
- Total number of Subsets of size at most K
- Count numbers with exactly K non-zero digits and distinct odd digit sum
- Check if the given array is same as its inverse permutation
- Maximum number of strings that can be formed with given zeros and ones
- Count of binary strings of length N having equal count of 0's and 1's and count of 1's ≥ count of 0's in each prefix substring
- Count of K-size substrings having palindromic permutations
- Count the number of ways to fill K boxes with N distinct items

Given a binary string str, the task is to count the number of substrings of the given string str such that each character of the… Read More »

Given an array arr[] of positive integers, the task is to find the permutation of the array such that sum of adjacent elements is not… Read More »

Given an integer K and an array arr[] which denotes the amount that can be stolen, the task is to choose a subset of items… Read More »

Given a string s and an integer X, our task is to find the number of distinct palindromic strings of length X from the given… Read More »

Given two integers N and M, the task is to find the numbers of ways to form a matrix of size N * M consisting… Read More »

Given two integers N and K, the task is to find the count of N-digit numbers such that the absolute difference of adjacent digits in… Read More »

Given an array arr[] having N integers and an integer K, the task is to select K elements from the given array such that sum… Read More »

Given two integers N and K, the task is to count the numbers up to N digits such that no two zeros are adjacents and… Read More »

Given a string str and an array arr[] of K characters, the task is to find the number of substrings of str that contains characters… Read More »

Given two arrays A[] and B[], each of size N, and two integers X and Y denoting the maximum number of elements that can be… Read More »

Given two integer N and K, the task is to find the number of sequence of length K consisting of values from the range [1,… Read More »

Given an integer N, the task is to print the number of binary strings of length N which at least one ‘1’. Examples: Input: 2… Read More »

Given N number of people, the task is to count the number of ways to form groups of size ? N where, in each group,… Read More »

Given an integer N, the task is to find the total number of ways to distribute N among 3 people such that: Exactly one person… Read More »

Given two integers A and B, representing the count of objects of two different types, and another integer N which represents the number of shelves,… Read More »