## Longest Remaining Time First (LRTF) CPU Scheduling Program

Prerequisite – CPU Scheduling | Longest Remaining Time First (LRTF) algorithm We have given some process with arrival time and Burst Time and we have… Read More »

- Split the given array into K sub-arrays such that maximum sum of all sub arrays is minimum
- Find maximum meetings in one room
- Largest substring with same Characters
- Find minimum changes required in an array for it to contain k distinct elements
- Maximum Length Chain of Pairs | Set-2
- Unbounded Fractional Knapsack
- Count of integers that divide all the elements of the given array
- Find minimum length sub-array which has given sub-sequence in it
- Count common elements in two arrays containing multiples of N and M
- Maximum String Partition
- Minimum deletions required to make GCD of the array equal to 1
- Minimum operations required to make every element greater than or equal to K
- Number of balanced parenthesis substrings
- Find the Kth smallest element in the sorted generated array
- Minimum deletions required such that any number X will occur exactly X times
- Longest Subarray having strictly positive XOR
- Count ways to divide circle using N non-intersecting chord | Set-2
- Fractional Knapsack Queries
- Minimum deletions required to make frequency of each letter unique
- Lexicographically smallest string of length N and sum K
- Minimum increment operations to make K elements equal
- Find Nth smallest number that is divisible by 100 exactly K times
- Queries for number of distinct elements from a given index till last index in an array
- Check if string can be rearranged so that every Odd length Substring is Palindrome
- Order of indices which is lexicographically smallest and sum of elements is <= X
- Find optimal weights which can be used to weigh all the weights in the range [1, X]
- Count total number of even sum sequences
- Minimum cost to convert str1 to str2 with the given operations
- Minimum halls required for class scheduling
- Find maximum value of the last element after reducing the array with given operations

Prerequisite – CPU Scheduling | Longest Remaining Time First (LRTF) algorithm We have given some process with arrival time and Burst Time and we have… Read More »

Given an integer and an integer array , the task is to find the minimum possible sum of all the elements of the array after… Read More »

Given N line segments where the length of the ith line segment is . The task is to find the maximum number of parallelograms can… Read More »

Given two integer arrays and where stores the ages of different students and an element of stores the number of candies that packet has (complete… Read More »

Given an array which represents the marks of students. The passing grade is and maximum marks that a student can score is , the task… Read More »

Given two integers and , the task is to find the sum of all the numbers within the range [1, n] excluding the numbers which… Read More »

Given a string . Find a string , where B is a palindrome and A is a subsequence of B. A subsequence of a string… Read More »

Given sum and gcd of two numbers and . The task is to find both the numbers a and b. If the numbers do not… Read More »

Given Rupees. A liter plastic bottle of water costs Rupees and a litre of glass bottle of water costs Rupees. But the empty glass bottle… Read More »

Given a binary array arr[] of zero’s and one’s only. The task is to find the minimum number of one’s to be changed to zero… Read More »

Given an array A[] of integers. The task is to count total subarrays whose sum is prime with ( size > 1 ). Examples: Input… Read More »

We are given an array of N integers, we need to partition the array into segments such that every element of a segment is greater… Read More »

Given an incomplete bracket sequence S. The task is to find the number of closing brackets ‘)’ needed to make it a regular bracket sequence… Read More »

Given an integer N. The task is to find the lexicographically smallest permutation of integer of the form: 12345…N such that no digit occurs at… Read More »

Given a function F(n) = P – (0.006 * n), where P is given. Given a list of integers and a number, . The task… Read More »