[AtCoder] E - Sensor Optimization Dilemma 2Read more
[AtCoder] E - How to Win the ElectionRead more
[AtCoder] A - AppraiserRead more
[AtCoder] E - Avoid K PartitionRead more
[AtCoder] E - Sightseeing TourRead more
[AtCoder] E - Permute K timesRead more
[AtCoder] F - Rearrange QueryRead more
[AtCoder] E - Manhattan Multifocal EllipseRead more
[LeetCode] Maximum Area Rectangle With Point Constraints II

3382. Maximum Area Rectangle With Point Constraints II

There are n points on an infinite plane. You are given two integer arrays xCoord and yCoord where (xCoord[i], yCoord[i]) represents the coordinates of the ith point.

Your task is to find the maximum area of a rectangle that:

  • Can be formed using four of these points as its corners.
  • Does not contain any other point inside or on its border.
  • Has its edges parallel to the axes.

Return the maximum area that you can obtain or -1 if no such rectangle is possible.

Read more
[LeetCode] Maximum Subarray Sum With Length Divisible by K

3381. Maximum Subarray Sum With Length Divisible by K

You are given an array of integers nums and an integer k.

Return the maximum sum of a non-empty subarray of nums, such that the size of the subarray is divisible by k.

A subarray is a contiguous non-empty sequence of elements within an array.

Read more