Find the number of good permutations
Given two integers N and K. The task is to find the number of good permutations of first N natural numbers. A permutation is called… Read More »
Given two integers N and K. The task is to find the number of good permutations of first N natural numbers. A permutation is called… Read More »
Given the integer values of N and K. The task is to find the number of pairs from the set of natural numbers up to… Read More »
Given an integer N, the task is to find the smallest and the largest N digit numbers which are also perfect squares. Examples: Input: N… Read More »
Given three integers a, b and N. Find the total number of distinct pairs which can be formed by selecting one integer from 1 to… Read More »
Given two numbers N and P. The task is to generate an array of all positive elements, and in one operation you can choose a… Read More »
Given two large or small numbers, the task is to find the last digit of the product of these two numbers. Examples: Input: a =… Read More »
Given two integers n1 and n2, the task is to concatenate these two integers into one integer. Example: Input: n1 = 12, n2 = 34… Read More »
Given a string of lowercase alphabets. The task is to check whether the frequency of alphabets in this string, after arranging in any possible manner,… Read More »
Given two integers L and R. The task is to find the count of all even numbers in the range [L, R] whose sum of… Read More »
Given two integers N and K, the task is to find a permutation of first 2*N natural numbers such that the following equation is satisfied.… Read More »
Given an integer N, the task is to find out whether it can be written as a sum of 2 triangular numbers (which may or… Read More »
Given three non-zero digits 0 < A, B, C < 9. The task is to find the smallest number divisible by 3 all of whose… Read More »
Counting numbers like 1, 2, 3, 4, 5, 6 … Basically, all integers greater than 0 are natural numbers. Fact about Natural numbers They are… Read More »
Given two integers A and B, the task is to find the minimum positive integer N such that N is divisible by A and the… Read More »
Given a number N in the form of string. The task is to find the greatest number that has same set of digits as N… Read More »