## Maximum money that can be withdrawn in two steps

There are two cash lockers, one has X number of coins and the other has Y number of coins, you can withdraw money at max… Read More »

- Dijkstra's shortest path with minimum edges
- CPU Scheduling | Longest Remaining Time First (LRTF) Program
- Minimum number of sets with numbers less than Y
- Minimum Increment / decrement to make array elements equal
- Minimum cost to reach a point N from 0 with two different operations allowed
- Remove exactly one element from the array such that max - min is minimum
- Check whether all the rotations of a given number is greater than or equal to the given number or not
- Find length of longest Fibonacci like subsequence
- Maximum sum by picking elements from two arrays in order
- Given count of digits 1, 2, 3, 4, find the maximum sum possible
- Spanning Tree With Maximum Degree (Using Kruskal's Algorithm)
- Python Program to check if given array is Monotonic
- Minimize the maximum minimum difference after one removal from array
- Minimize the difference between minimum and maximum elements
- Minimum number of operations required to reduce N to 1
- Find the maximum possible value of a[i] % a[j] over all pairs of i and j
- Rectangle with minimum possible difference between the length and the width
- Minimum elements to be removed such that sum of adjacent elements is always odd
- Find maximum distance between any city and station
- Maximum litres of water that can be bought with N Rupees
- Maximum sum of all elements of array after performing given operations
- K-th lexicographically smallest unique substring of a given string
- Maximum number of candies that can be bought
- Check if a string can be rearranged to form special palindrome
- Minimum number of 1's to be replaced in a binary array
- Count all possible N digit numbers that satisfy the given condition
- Minimum operations to make frequency of all characters equal K
- Count subarrays with Prime sum
- Find Intersection of all Intervals
- Count valid pairs in the array satisfying given conditions

There are two cash lockers, one has X number of coins and the other has Y number of coins, you can withdraw money at max… Read More »

Given an array arr[] of integers, where the ith integer represents the position where an island is present, and an integer k (1 ≤ k… Read More »

Given an array of N elements and you can perform two operations on it: Increase any of the array element by X once. Decrease any… Read More »

Given a binary array of N elements and two initial values a and b. We can cross the i-th element if: If a[i] == 0,… Read More »

Given a number N, the task is to find the largest number less than or equal to the given number N such that on rearranging… Read More »

Given an array arr[] of random integers, the task is to push all the zero’s in the array to the start and all the one’s… Read More »

Given an array arr[] of N positive integers. The task is to find the maximum possible value of a[i] % a[j] over all pairs of… Read More »

Given a string str consisting of lowercase English alphabets, the task is to count the number of adjacent pairs of vowels. Examples: Input: str =… Read More »

Given N monsters, each monster has initial health h[i] which is an integer. A monster is alive if its health is greater than 0. In… Read More »

Given a merged sequence which consists of two sequences which got merged, one of them was strictly increasing and the other was strictly decreasing. Elements… Read More »

Given an integer N. The task is to generate a symmetric matrix of order N*N having the following properties. Main diagonal should contain only 0’s… Read More »

Given an array, arr[] of N integers, where arr[i] represents the number of distinct characters in the prefix of length (i + 1) of a… Read More »

Given a number N, the task is to find the sum of digits of a number at even and odd places. Examples: Input: N =… Read More »

You have an unlimited amount of banknotes worth A and B dollars (A not equals to B). You want to pay a total of S dollars using exactly N notes. The… Read More »

Given an integer N containing the digit 4 at least once. The task is to divide the number into two parts x1 and x2 such… Read More »