ProDeveloperTutorialonJanuary 19, 2025 Greedy: Partition characters Problem Statement: You are given a string with multiple characters repeating. You need to partiton the string into many parts such that each…
ProDeveloperTutorialonJanuary 19, 2025 Greedy: Maximum sum of absolute difference of an array Problem Statement: You are given an array, you need to find the maximum sun of absolute difference of any permutation in the given array.…
ProDeveloperTutorialonJanuary 19, 2025 Greedy: Shuffle array so that one array element is greater than other array element Problem Statement: You are given 2 array of equal size. You need to rearrange the first array in such a way that at any point of time a[i]…
ProDeveloperTutorialonJanuary 19, 2025 Greedy: Schedule task efficiently Problem Statement: You are given an array of CPU tasks and a cool off period between the same task “n”. You need to re-arrange the…
ProDeveloperTutorialonJanuary 19, 2025 Greedy: Distribute Candy Problem Statement: There are N children and each child is assigned a rating. You need to give candies to these children while making sure that…
ProDeveloperTutorialonJanuary 19, 2025 Greedy: Maximum meetings in one room Problem Statement: You have one meeting room in your company. There are multiple meetings taking place. Every meeting has a start and end time…
ProDeveloperTutorialonJanuary 19, 2025 Greedy: Plant n flowers in flower bed Problem Statement: You are given array that represents flowerbed, where some plants are placed. You are also given new flowers to be placed.…
ProDeveloperTutorialonJanuary 19, 2025 Greedy: Remove overlapping intervals. Problem Statement: You are given an array of intervals [start, end]. You need to return minimum number of intervals to remove to make the rest…
ProDeveloperTutorialonJanuary 19, 2025 Greedy: Check if the string is a substring of another string Problem Statement: You are given 2 strings s, t. You need to check if s is a substring of t. A substring of a string is a new string that is…
ProDeveloperTutorialonJanuary 19, 2025 Greedy: Get the minimum platforms needed to avoid delay in the train arrival. Problem Statement: You are given an array of arrival and departure timings for train at a station. You need to find the minimum umber of…