Tag Archives: Natural Numbers

Given two permutations P1 and P2 of numbers from 1 to N, the task is to find the maximum count of corresponding same elements in… Read More
Given two permutations P1 and P2 of numbers from 1 to N, the task is to find the maximum count of corresponding same elements in… Read More
Given two permutations P1 and P2 of numbers from 1 to N, the task is to find the maximum count of corresponding same elements in… Read More
Given two permutations P1 and P2 of numbers from 1 to N, the task is to find the maximum count of corresponding same elements in… Read More
Given two integers N and K, the task is to find the total number of ways of representing N as the sum of positive integers… Read More
Given a positive integer N, the task is to find the maximum set of numbers from the first N natural numbers whose Bitwise AND is… Read More
Given a positive integer N, the task is to find the number of triplets (A, B, C) from the first N Natural Numbers such that… Read More
Given two permutation arrays A[] and B[] of the first N Natural Numbers, the task is to find the minimum number of operations required to… Read More
Given a positive integer M and an array arr[] of size N and a few integers are missing in the array represented as -1, the… Read More
Given an array arr[] of size N having distinct integers from 1 to N, the task is to count the minimum number of steps required… Read More
Given a binary string S of size (N – 1), the task is to find the lexicographically smallest permutation P of the first N natural… Read More
Given an array arr[] of size N, where arr[i] is natural numbers less than or equal to N, the task is to find all the… Read More
Given two positive integers N and K, the task is to find the mean of the minimum of all possible subsets of size K from… Read More
Given an array arr[] of length N and an integer K, the task is to find the maximize the length of the array by appending… Read More
Natural numbers are all positive integers from 1 to infinity and are a component of the number system. Natural numbers are only positive integers, excluding… Read More