1917 Maximum Average Pass Ratio
Maximum Average Pass Ratio There is a school that has classes of students and each class will be having a final exam. You are given a 2D integer array classes, where classes[i] = [passi, totali]....
Maximum Average Pass Ratio There is a school that has classes of students and each class will be having a final exam. You are given a 2D integer array classes, where classes[i] = [passi, totali]....
Continuous Subarrays You are given a 0-indexed integer array nums. A subarray of nums is called continuous if: Let i, i + 1, ..., j be the indices in the subarray. Then, for each pair of indices...
Find Score of an Array After Marking All Elements You are given an array nums consisting of positive integers. Starting with score = 0, apply the following algorithm: Choose the smallest intege...
Take Gifts From the Richest Pile You are given an integer array gifts denoting the number of gifts in various piles. Every second, you do the following: Choose the pile with the maximum number o...
Find Longest Special Substring That Occurs Thrice II You are given a string s that consists of lowercase English letters. A string is called special if it is made up of only a single character. ...
Maximum Beauty of an Array After Applying Operation You are given a 0-indexed array nums and a non-negative integer k. In one operation, you can do the following: Choose an index i that **hasn'...
Find Longest Special Substring That Occurs Thrice I You are given a string s that consists of lowercase English letters. A string is called special if it is made up of only a single character. F...
Special Array II An array is considered special if every pair of its adjacent elements contains two numbers with different parity. You are given an array of integer nums and a 2D integer matrix ...
Two Best Non-Overlapping Events You are given a 0-indexed 2D integer array of events where events[i] = [startTimei, endTimei, valuei]. The ith event starts at startTimei and ends at endTimei, and...
Minimum Limit of Balls in a Bag You are given an integer array nums where the ith bag contains nums[i] balls. You are also given an integer maxOperations. You can perform the following operation...