Given an integer N, the task is to print the ways to get the sum N by repeatedly throwing a dice. Input: N = 3Output: 1… Read More

# Tag Archives: Permutation and Combination

Given an integer N and a chess knight placed in mobile keypad. The task is to count the total distinct N digit numbers which can… Read More

In mathematics, permutation relates to the function of ordering all the members of a group into some series or arrangement. In other words, if the… Read More

Sometimes, to find order, arrangements, or combinations of objects are required. Combinatorics is that branch of mathematics that focuses on the study of counting. So… Read More

Permutation is known as the process of organizing the group, body, or numbers in order, selecting the body or numbers from the set, is known… Read More

Given integers N, P, and Q the task is to find the number of ways to form a group of N people having at least… Read More

Given positive integers N, X and Y. The task is to find the count of unique binary strings of length N having X 0s and… Read More

Given three numbers N, X, and Y, find the count of unique binary strings of length N having at least X 0s and Y 1s.… Read More

Given integers N, P, Q, X, and Y, the task is to find the number of ways to form a group of N people having… Read More

Given two positive integers N and K, the task is to count the number of even and odd integers consisting of N bits, out of… Read More

Given a positive integer N, the task is to find the number of integers of N digits having even digits at odd indices and prime… Read More

Given two positive integers N and M representing the count of distinct digits and alphabets respectively in a string, the task to count the number… Read More

Given a positive integer N, the task is to count the number of N-digit numbers such that every index (1-based indexing) in the number is… Read More

Given three integers N, L, and R, the task is to print the total count of ways to form a necklace of at most N… Read More