## Count of pairs satisfying the given condition

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 »

- How to learn Pattern printing easily?
- Find the smallest positive number missing from an unsorted array | Set 3
- Count of integers that divide all the elements of the given array
- Maximum String Partition
- Length of longest subarray in which elements greater than K are more than elements not greater than K
- Minimum increment or decrement operations required to make the array sorted
- Count all substrings having character K
- Minimum given operations required to convert a given binary string to all 1's
- 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
- Check whether bitwise AND of N numbers is Even or Odd
- Minimum Possible sum of digits in a positive multiple of N
- Find the sum of prime numbers in the Kth array
- Difference between Posteriori and Priori analysis
- Properties of Asymptotic Notations
- Probability such that two subset contains same number of elements
- Find numbers which are multiples of first array and factors of second array
- 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 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 »

Given an array arr[] of size N. Each second an integer disappears for N seconds and after N seconds, it reappears at its original position.… Read More »

Given an array arr[], the task is to find the number of pairs (arr[i], arr[j]) in the array such that arr[i] + arr[j] = arr[i]… Read More »

Given an integer N, the task is to find two positive integers A and B such that A + B = N and the sum… Read More »

Consider an array A[] of integers and the following two types of queries. update(l, r, x): multiply x to all values from A[l] to A[r]… Read More »

Given a row of silver coins among which a special gold coin is present. Two players play the game, and with each move, a player… Read More »

Given an integer S, the task is to find the coordinates of a triangle whose area is (S / 2). Examples: Input: S = 4… Read More »

Given an array arr[] of N positive integers, the task is to find an arrangement such that Bitwise AND of the first N – 1… Read More »

Given two integers X and Y, the task is to convert X to Y using the following operations: Add any prime number to X. Subtract… Read More »