Skip to content

Tag Archives: Natural Numbers

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
Given a positive integer G, the task is to find the number of values of K such that the sum of the first N numbers… Read More
Given an array arr[] consisting of N positive integers and a positive integer K, the task is to find the minimum number of elements that… Read More
Given a positive integer N and a digit K, the task is to find the minimum count of numbers ending with digit K such that… Read More
Given a positive integer N, the task is to print all the numbers, say K, such that K is a divisor of N and K… Read More
Given an array arr[] of size N, the task is to find the lexicographically smallest permutation of first 2*N natural numbers such that every ith… Read More
Given a positive integer N, the task is to construct a permutation of first N natural numbers such that the absolute difference between adjacent elements… Read More

Start Your Coding Journey Now!