3611 Construct The Minimum Bitwise Array Ii
Construct the Minimum Bitwise Array II You are given an array nums consisting of n prime integers. You need to construct an array ans of length n, such that, for each index i, the bitwise OR of ...
Construct the Minimum Bitwise Array II You are given an array nums consisting of n prime integers. You need to construct an array ans of length n, such that, for each index i, the bitwise OR of ...
Maximum Side Length of a Square with Sum Less than or Equal to Threshold Given a m x n matrix mat and an integer threshold, return the maximum side-length of a square with a sum less than or equa...
Largest Magic Square A k x k magic square is a k x k grid filled with integers such that every row sum, every column sum, and both diagonal sums are all equal. The integers in the magic square do...
Find the Largest Area of Square Inside Two Rectangles There exist n rectangles in a 2D plane with edges parallel to the x and y axis. You are given two 2D integer arrays bottomLeft and topRight w...
Maximum Square Area by Removing Fences From a Field There is a large (m - 1) x (n - 1) rectangular field with corners at (1, 1) and (m, n) containing some horizontal and vertical fences given in ...
Maximize Area of Square Hole in Grid You are given the two integers, n and m and two integer arrays, hBars and vBars. The grid has n + 2 horizontal and m + 2 vertical bars, creating 1 x 1 unit ce...
Separate Squares II You are given a 2D integer array squares. Each squares[i] = [xi, yi, li] represents the coordinates of the bottom-left point and the side length of a square parallel to the x-...
Separate Squares I You are given a 2D integer array squares. Each squares[i] = [xi, yi, li] represents the coordinates of the bottom-left point and the side length of a square parallel to the x-a...
Minimum Time Visiting All Points On a 2D plane, there are n points with integer coordinates points[i] = [xi, yi]. Return *the minimum time in seconds to visit all the points in the order given by...
Maximal Rectangle Given a rows x cols binary matrix filled with 0’s and 1’s, find the largest rectangle containing only 1’s and return its area. Example 1: **Input:** matrix = [["1","0","1...