Count numbers up to N which contains at least one repeated digit
Given an integer N, the task is to count the numbers less than or equal to N such that each number contains at least one… Read More »
Given an integer N, the task is to count the numbers less than or equal to N such that each number contains at least one… Read More »
Given an array arr[] consisting of N integers, and an integer K, the task is to find the maximum number of inversions of the given… Read More »
Given two positive integers N and K, the task is to find the number of K length strings that can be generated from the first… Read More »
Given a positive integer N, the task is to find the number of alphanumeric palindromic strings of length N. Since the count of such strings… Read More »
Given two arrays P[] and Q[] which permutations of first N natural numbers. If P[] and Q[] are the ath and bth lexicographically smallest permutations… Read More »
Given string str consisting of lowercase letters, the task is to find the minimum number of characters to be deleted from the given string such… Read More »
Given an array arr[] of size N, where arr[i] denotes the number of elements on the left that are greater than the ith element in… Read More »
Given an array arr[] of size N, the task is to find the total number of sequences of positive integers possible (greater than 1) whose… Read More »
Given two integers N and K, the task is to find the number of N-length arrays that can be generated by using the values 0,… Read More »
Given an integer N, the task is to check if there exists any permutation of the first N natural numbers [1, N] such that Bitwise… Read More »
Given two arrays A[] and B[] consisting of N integers (N is odd), the task is to rearrange array B[] such that for each 1… Read More »
Given N distinct objects, the task is to find the number of distinct arrangements of N objects if all clockwise arrangements are considered the same.… Read More »
Given two integers N and K, the task is to count the number of permutations of the first N natural numbers having exactly K inversions.… Read More »
Given string str, the task is to print the last character of the lexicographically smallest non-palindromic permutation of the given string. If no such permutation… Read More »
Given three integers N, P, and Q, the task is to count all possible distinct binary strings of length N such that each binary string… Read More »