## Count of even and odd set bit with array element after XOR with K

Given an array arr[] and a number K. The task is to find the count of the element having odd and even number of the… Read More »

- Minimum increment or decrement operations required to make the array sorted
- Minimize the cost of partitioning an array into K groups
- Count total number of even sum sequences
- Sum of numbers in a range [L, R] whose count of divisors is prime
- Find next greater element with no consecutive 1 in it's binary representation
- Random list of M non-negative integers whose sum is N

Given an array arr[] and a number K. The task is to find the count of the element having odd and even number of the… Read More »

Given a natural number N, the task is to find the next number having distinct digits from the given number. Examples: Input: N = 19… Read More »

Given an integer N, the task is to find any N-digit positive number (except for zeros) such that it is not divisible by any of… Read More »

Given the length L and breadth B of a rectangle and the position of a hole in the rectangle as (X, Y) coordinate, the task… Read More »

Given an array arr[] of N positive integers, the task is to answer Q queries where each query consists of a range [L, R] and… Read More »

Given an integer X, the task is to find the three distinct integers greater than 1 i.e. A, B and C such that (A *… Read More »

Given a palindromic string str and an integer N. The task is to find if it is possible to remove exactly N characters from the… Read More »

Given three integers N, S and K, the task is to create an array of N positive integers such that the bitwise OR of any… Read More »

Given two integers A and B, the task is to calculate the number of pairs (a, b) such that 1 ≤ a ≤ A, 1… Read More »

Given an integer X, the task is to partition its digit into two groups either A or B such that the sequence of digits is… Read More »

Prerequisite:Comparison among bubble sort, insertion sort and selection sort. Write a C program to plot and analyze the time complexity of Bubble sort, Insertion sort… Read More »

Given an integer N which is the number of rows, the task is to draw the number pattern in the shape of a double headed… Read More »

Factor Analytics is a special technique reducing the huge number of variables into a few numbers of factors is known as factoring of the data,… Read More »

Given the side of a square a which is kept inside a circle. It keeps expanding until all four of its vertices touch the circumference… Read More »

Given a binary matrix. In a single operation, you are allowed to choose two adjacent elements and invert their parity. The operation can be performed… Read More »