## Minimum increment or decrement operations required to make the array sorted

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 »

- Complexity Analysis of Binary Search
- How to learn Pattern printing easily?
- Find the smallest positive number missing from an unsorted array | Set 3
- Microsoft Interview experience for full time position of software engineer at Microsoft Ireland Research
- Maximum length of subarray such that sum of the subarray is even
- Algorithms Sample Questions | Set 3 | Time Order Analysis
- 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
- Sorting Algorithms Visualization : Bubble Sort
- 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
- Longest substring of only 4's from the first N characters of the infinite string
- 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
- Count of adjacent Vowel Consonant Pairs
- Find maximum value of the last element after reducing the array with given operations
- Find the original coordinates whose Manhattan distances are given
- Count total number of even sum sequences
- Count pairs of strings that satisfy the given conditions
- Concatenate strings in any order to get Maximum Number of "AB"
- Minimize the cost of partitioning an array into K groups
- Find number of magical pairs of string of length L
- Minimum operations to make sum of neighbouring elements <= X
- Check whether bitwise AND of N numbers is Even or Odd
- Find the largest interval that contains exactly one of the given N integers.
- Minimum Possible sum of digits in a positive multiple of N
- Sum of numbers in a range [L, R] whose count of divisors is prime

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 »

Given two integers M and N, the task is to create a list of M non-negative integers whose sum is N. In case when more… Read More »

Given an integer N, the task is to count all possible sequences of length N such that all the elements of the sequence are from… Read More »

Given K arrays where the first array contains the first prime number, the second array contains the next 2 primes and the third array contains… Read More »

Given two arrays A[] and B[], the task is to find the integers which are divisible by all the elements of array A[] and divide… Read More »

Given a string str and a character K, the task is to find the count of all the substrings of str that contain the character… Read More »

Given an array arr[] containing N numbers. The task is to check whether the bitwise-AND of the given N numbers is even or odd. Examples:… Read More »

Given a binary number as a string str of length L. The task is to find the minimum number of operations needed so that the… Read More »

Prerequisite: Asymptotic Notations Assuming f(n), g(n) and h(n) be asymptotic functions the mathematical definitions are: If f(n) = Θ(g(n)), then there exists positive constants c1,… Read More »

Given a set containing N elements. If two subset X and Y picked then find the probability that both of them contains the same number… Read More »

Given an array arr[] of N elements. The task is to find the count of positive integers that divide all the array elements. Examples: Input:… Read More »

Given a string. The task is to find the maximum number P, such that given string can be partitioned into P contiguous substrings such that… Read More »