455 Assign Cookies
Assign Cookies Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a greed factor g[i], which is th...
Assign Cookies Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a greed factor g[i], which is th...
Maximum Matching of Players With Trainers You are given a 0-indexed integer array players, where players[i] represents the ability of the ith player. You are also given a 0-indexed integer array ...
The Earliest and Latest Rounds Where Players Compete There is a tournament where n players are participating. The players are standing in a single row and are numbered from 1 to n based on their ...
Meeting Rooms III You are given an integer n. There are n rooms numbered from 0 to n - 1. You are given a 2D integer array meetings where meetings[i] = [starti, endi] means that a meeting will b...
Reschedule Meetings for Maximum Free Time II You are given an integer eventTime denoting the duration of an event. You are also given two integer arrays startTime and endTime, each of length n. ...
Reschedule Meetings for Maximum Free Time I You are given an integer eventTime denoting the duration of an event, where the event occurs from time t = 0 to time t = eventTime. You are also given...
Maximum Number of Events That Can Be Attended II You are given an array of events where events[i] = [startDayi, endDayi, valuei]. The ith event starts at startDayi and ends at endDayi, and if you...
Maximum Number of Events That Can Be Attended You are given an array of events where events[i] = [startDayi, endDayi]. Every event i starts at startDayi and ends at endDayi. You can attend an ev...
Finding Pairs With a Certain Sum You are given two integer arrays nums1 and nums2. You are tasked to implement a data structure that supports queries of two types: **Add** a positive integer to ...
Find the K-th Character in String Game II Alice and Bob are playing a game. Initially, Alice has a string word = “a”. You are given a positive integer k. You are also given an integer array oper...