Leetcode 0252. Meeting Rooms

Posted on Sun 08 December 2024 in Leetcode Premium • Tagged with sort

Question Link : https://leetcode.com/problems/meeting-rooms/

Difficulty: Easy

Premium: True

Question

Given an array of meeting time intervals where intervals[i] = [starti, endi], determine if a person could attend all meetings.   Example 1: Input: intervals = [[0,30],[5,10],[15,20]] Output: false Example 2: Input: intervals = [[7,10 …


Continue reading

Leetcode 0406. Queue Reconstruction by Height

Posted on Thu 07 July 2022 in Leetcode • Tagged with sort

Question Link : https://leetcode.com/problems/queue-reconstruction-by-height/

Difficulty: Medium

Question

You are given an array of people, people, which are the attributes of some people in a queue (not necessarily in order). Each people[i] = [hi, ki] represents the ith person of height hi with exactly ki other people in …


Continue reading