.
problemsolving Records problems solved in github pages WIP import os import subprocess from datetime import datetime import re import html # Paths REPO_DIR = '.' TARGET_DIR = './chirpy' # Lang...
problemsolving Records problems solved in github pages WIP import os import subprocess from datetime import datetime import re import html # Paths REPO_DIR = '.' TARGET_DIR = './chirpy' # Lang...
Longest Subarray of 1’s After Deleting One Element Given a binary array nums, you should delete one element from it. Return the size of the longest non-empty subarray containing only *1’s in the...
problemsolving Records problems solved in github pages WIP import os import subprocess from datetime import datetime import re import html # Paths REPO_DIR = '.' TARGET_DIR = './chirpy' # Lang...
Find the Minimum Area to Cover All Ones II You are given a 2D binary array grid. You need to find 3 non-overlapping rectangles having non-zero areas with horizontal and vertical sides such that a...
Find the Minimum Area to Cover All Ones I You are given a 2D binary array grid. Find a rectangle with horizontal and vertical sides with the** smallest** area, such that all the 1’s in grid lie i...
Count Submatrices With All Ones Given an m x n binary matrix mat, return the number of submatrices that have all ones. Example 1: **Input:** mat = [[1,0,1],[1,1,0],[1,1,0]] **Output:** 13 ...
Count Square Submatrices with All Ones Given a m * n matrix of ones and zeros, return how many square submatrices have all ones. Example 1: **Input:** matrix = [ [0,1,1,1], [1,1,1,1], ...
Number of Zero-Filled Subarrays Given an integer array nums, return *the number of subarrays filled with *0. A subarray is a contiguous non-empty sequence of elements within an array. Exampl...
24 Game You are given an integer array cards of length 4. You have four cards, each containing a number in the range [1, 9]. You should arrange the numbers on these cards in a mathematical expres...
New 21 Game Alice plays the following game, loosely based on the card game “21”. Alice starts with 0 points and draws numbers while she has less than k points. During each draw, she gains an int...