## Minimum size Subarray with maximum sum in non-increasing order

Given an array arr, the task is to find a subarray of the array elements whose sum is strictly greater than the rest of the… Read More »

- Must do Math for Competitive Programming
- Product of all Subarrays of an Array
- Perfect Sum Problem
- How is the time complexity of Sieve of Eratosthenes is n*log(log(n))?
- Pi(π) in C++ with Examples
- Check whether a number can be represented as difference of two squares
- Modulo Operator (%) in C/C++ with Examples
- Count of subsets with sum equal to X using Recursion
- Maximum number of unique values in the array after performing given operations
- Count of subarrays having exactly K perfect square numbers
- Sum of GCD of all possible sequences
- Find the numbers from 1 to N that contains exactly k non-zero digits
- Logarithm tricks for Competitive Programming
- Program to calculate Electricity Bill
- Longest sub-array with maximum GCD
- Count of subarrays which start and end with the same element
- Puzzle | Dividing a Square into N smaller squares
- Minimize the maximum difference of adjacent elements after at most K insertions
- Maximum GCD of all subarrays of length at least 2
- Find K distinct positive odd integers with sum N
- Maximum profit by buying and selling a share at most K times | Greedy Approach
- Longest Mountain Subarray
- Expected Number of Trials to get N Consecutive Heads
- Digital Root of a given large integer using Recursion
- Count number of pairs with positive sum in an array
- Program to calculate Percentile of a student based on rank
- Find the minimum number to be added to N to make it a prime number
- Probability of getting K heads in N coin tosses
- Find the K closest points to origin using Priority Queue
- Minimum window size containing atleast P primes in every window of given range

Given an array arr, the task is to find a subarray of the array elements whose sum is strictly greater than the rest of the… Read More »

Given an array of integers arr, the task is to check if there is a subarray (except the given array) such that the sum of… Read More »

Given a 2D square matrix of size N X N, the task is to count the number of mountains in the matrix. An element in… Read More »

Given an integer N, the task is to find the number of groups having the largest size. Each number from 1 to N is grouped… Read More »

Given a complex number Z, the task is to determine the real and imaginary part of this complex number. Examples: Input: z = 3 +… Read More »

Given a complex number str in the form of a string, the task is to determine the conjugate of this complex number. Examples: Input: str… Read More »

Given a fair coin which is tossed N times, the task is to determine the probability such that no two heads occur consecutively. Examples: Input:… Read More »

Given two numbers N and K. A sequence A1, A2, ….AN of length N can be created by placing numbers from 1 to K at… Read More »

Given two bases of the isoceles trapezoid ABCD as a and b, the task is to find the area of circle inscribed in this trapezoid… Read More »

Given a function and two integers a and b. The task is to find the integrand of the given function from lower limit(a) to upper… Read More »

Given an integer N, the task is to find the minimum number K to be added to N such that N + K becomes a… Read More »

Given a number N which is a prime number, the task is to find the position of the given prime number in the series of… Read More »

Given an array arr[] of size N, the task is to find the number of permutations in the array that follows the given condition: If… Read More »

Given a binary string str consisting of only 0’s and 1’s, the task is to print the string after removing the occurrences of “10” and… Read More »

Given a tree with N vertices numbered [0, n – 1], K vertices and a distance D, the task is to find whether there is… Read More »