## Number of permutations of a string in which all the occurrences of a given character occurs together

Given a string ‘s’ and a character ‘c’, the task is to find the number of permutations of the string in which all the occurrences… Read More »

- Java Program to print distinct permutations of a string
- Generating Lyndon words of length n
- Number of unique pairs in an array
- Sum of all Submatrices of a Given Matrix
- Count of Numbers in Range where first digit is equal to last digit of the number
- Count of sub-sets of size n with total element sum divisible by 3
- Count of Numbers in a Range divisible by m and having digit d in even positions
- Number of triangles that can be formed with given N points
- Count unordered pairs (i,j) such that product of a[i] and a[j] is power of two
- Total number of subsets in which the product of the elements is even
- Count of Numbers in a Range where digit d occurs exactly K times
- K length words that can be formed from given characters without repetition
- Count of Numbers in Range where the number does not contain more than K non zero digits
- Count the number of special permutations
- Permutations of string such that no two vowels are adjacent
- Number of permutations of a string in which all the occurrences of a given character occurs together
- Ways to paint N paintings such that adjacent paintings don't have same colors
- Number of trailing zeroes in base 16 representation of N!
- Arrange first N natural numbers such that absolute difference between all adjacent elements > 1
- Count pairs in an array such that LCM(arr[i], arr[j]) > min(arr[i],arr[j])
- Number of moves required to guess a permutation.
- Minimum and Maximum number of pairs in m teams of n people
- Python program to get all subsets of given size of a set
- Minimum numbers needed to express every integer below N as a sum
- Count ordered pairs of positive numbers such that their sum is S and XOR is K
- Ways to form n/2 pairs such that difference of pairs is minimum
- Count sub-sets that satisfy the given condition
- Maximum points of intersection n lines
- Ways to divide a binary array into sub-arrays such that each sub-array contains exactly one 1
- Number of ways to arrange a word such that all vowels occur together

Given a string ‘s’ and a character ‘c’, the task is to find the number of permutations of the string in which all the occurrences… Read More »

S(r, n), represents the number of ways that we can arrange r objects around indistinguishable circles of length n, and every circle n must have… Read More »

Given 2n girls and randomly divided into two subgroups each containing n girls. The task is to count the number of ways in which groups… Read More »

There are n boys and n girls are to be seated around a round table, in a circle. The task is to find number of… Read More »

Given a sum and a number . The task is to count all possible ordered pairs (a, b) of positive numbers such that the two… Read More »

We are given a number N. The task is to find the count of numbers which have N digits and odd number of zeroes. Note:… Read More »

Given two numbers n, r ( n>=r ). The task is to find the value of C(n, r) for big value of n. Examples: Input:… Read More »

Given a binary string composed of 0’s and 1’s. The task is to find the number of unique permutation of the string which starts with… Read More »

Given two numbers N and T where, and . The task is to find the value of . Since sum can be large, output it… Read More »

Given a string where, . Assume that all the characters in are unique. The task is to compute the minimum length of a string which… Read More »

Round 1 (Online Coding and MCQs):- The test was held on HackerEarth and was of 90 minutes. It consisted of 3 Coding Problem (100 Marks)… Read More »

There are N Balloons marked with value Bi (where B(i…N)). User will be given Gun with N Bullets and user must shot N times. When… Read More »

Given a string str. The task is to find all possible number of strings that can be obtained by replacing the “$” with alphabets in… Read More »

Given an array of positive integers (may contain duplicates), the task is to find the number of triplets whose product is equal to a given… Read More »

Given m and n representing number of mangoes and number of people respectively. Task is to calculate number of ways to distribute m mangoes among… Read More »