Count numbers from given range having odd digits at odd places and even digits at even places
Given two integers L and R, the task is to count numbers from the range [L, R] having odd digits at odd positions and even… Read More »
Given two integers L and R, the task is to count numbers from the range [L, R] having odd digits at odd positions and even… Read More »
Given an array arr[] of size N, two positive integers M and K, the task is to partition the array into M equal length subsets… Read More »
Given an integer N, the task is to partition the squares of first N( always a multiple of 8 ) natural numbers into two sets… Read More »
Given an integer N and an array arr[], the task is to check if a sequence of first N natural numbers, i.e. {1, 2, 3,… Read More »
Given a binary array arr[] consisting of equal count of 0s and 1s, the task is to count the minimum number of subarray reversal operations… Read More »
Given an integer N, the task is to reduce the value of N to 0 by performing the following operations minimum number of times: Flip… Read More »
Given an array arr[] consisting of N integers and three integers X, Y, and K, the task is to find the farthest index that can… Read More »
Given an array arr[] of length N, the task is to modify the given array by replacing each element of the given array by its… Read More »
Given string str of length N, the task is to remove all the characters from the string whose frequencies are prime. Examples: Input: str =… Read More »
Given a positive integer N, the task is to construct an array consisting of first N natural numbers such that each pair of adjacent elements… Read More »
Given two positive integers N and K, the task is to find the value of N after incrementing the value of N in each operation… Read More »
Given an integer N, the task is to find the Nth natural number with exactly two set bits. Examples: Input: N = 4Output: 9Explanation: Numbers… Read More »
Given two positive integers N and K, the task is to print all possible K-length subsequences from first N natural numbers whose sum of elements… Read More »
Given an array arr[] of length N, the task is to find the count of array indices such that removing an element from these indices… Read More »
Given an array, arr[] of size N, the task is to find the count of array indices such that removing an element from these indices… Read More »