代码改变世界

随笔档案-2023年09月

[LeetCode] 2334. Subarray With Elements Greater Than Varying Threshold_Hard tag: dp, stack

2023-09-29 00:18 by Johnson_强生仔仔, 21 阅读, 收藏, 编辑
摘要: You are given an integer array nums and an integer threshold. Find any subarray of nums of length k such that every element in the subarray is greater 阅读全文

[LeetCode] 85. Maximal Rectangle_Hard tag: Dynamic Programming

2023-09-14 08:26 by Johnson_强生仔仔, 7 阅读, 收藏, 编辑
摘要: 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: matri 阅读全文
点击右上角即可分享
微信分享提示