3447. Assign Elements to Groups with Constraints
3447. Assign Elements to Groups with Constraints
Description
You are given an integer array groups
, where groups[i]
represents the size of the i^th
group. You are also given an integer array elements
.
3446. Sort Matrix by Diagonals
3446. Sort Matrix by Diagonals
Description
You are given an n x n
square matrix of integers grid
. Return the matrix such that:
3440. Reschedule Meetings for Maximum Free Time II
3440. Reschedule Meetings for Maximum Free Time II
Description
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
.
3439. Reschedule Meetings for Maximum Free Time I
3439. Reschedule Meetings for Maximum Free Time I
Description
You are given an integer eventTime
denoting the duration of an event, where the event occurs from time t = 0
to time t = eventTime
.
3443. Maximum Manhattan Distance After K Changes
3443. Maximum Manhattan Distance After K Changes
Description
You are given a string s
consisting of the characters 'N'
, 'S'
, 'E'
, and 'W'
, where s[i]
indicates movements in an infinite grid: