## Minimize the sum of digits of A and B such that A + B = N

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 »

- 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 deletions required to make GCD of the array equal to 1
- Minimum deletions required such that any number X will occur exactly X times
- 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
- Sum of all second largest divisors after splitting a number into one or more parts
- Find Nth smallest number that is divisible by 100 exactly K times
- Minimize the cost of partitioning an array into K groups
- Count total number of even sum sequences
- Find maximum value of the last element after reducing the array with given operations
- Count pairs of strings that satisfy the given conditions
- Concatenate strings in any order to get Maximum Number of "AB"
- Sum of numbers in a range [L, R] whose count of divisors is prime
- Minimum operations to make sum of neighbouring elements <= X
- 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
- Find numbers which are multiples of first array and factors of second array
- Probability such that two subset contains same number of elements
- 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 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 »

A string is called good if it is made with only digits 0 to 9 and adjacent elements are different. The task is to find… Read More »

Given that N people are sitting in a circular queue numbered from 1 to N, the task is to count the number of ways to… Read More »

Given an array arr[] of N integers and a positive integer K, the task is to minimize the sum of the array elements after performing… Read More »

Given two integers L and R, the task is to calculate the value of the expression: Examples: Input: L = 6, R =… Read More »

Given an integer N, the task is to find the minimum count of numbers which needs to be added to get N. (All such numbers… Read More »

Given an array arr[] of N integers, the task is to sort the array in non-decreasing order by performing the minimum number of operations. In… Read More »

Given Q queries where each query consists of an integer range [L, R], the task is to find the sum of the integers from the… Read More »

Given an array arr[] and an integer K, the task is to partition the array into K non-empty groups where each group is a subarray… Read More »

Given Q queries where each query consists of an integer N and the task is to find the smallest integer greater than N such that… Read More »