xinyu04

导航

2022年9月4日 #

[Google] LeetCode 302 Smallest Rectangle Enclosing Black Pixels

摘要: You are given an m x n binary matrix image where 0 represents a white pixel and 1 represents a black pixel. The black pixels are connected (i.e., ther 阅读全文

posted @ 2022-09-04 22:09 Blackzxy 阅读(15) 评论(0) 推荐(0) 编辑

[Google] LeetCode 1825 Finding MK Average 大根堆+小根堆

摘要: You are given two integers, m and k, and a stream of integers. You are tasked to implement a data structure that calculates the MKAverage for the stre 阅读全文

posted @ 2022-09-04 17:57 Blackzxy 阅读(40) 评论(0) 推荐(0) 编辑

[Google] LeetCode 329 Longest Increasing Path in a Matrix 记忆化搜索

摘要: Given an m x n integers matrix, return the length of the longest increasing path in matrix. From each cell, you can either move in four directions: le 阅读全文

posted @ 2022-09-04 06:10 Blackzxy 阅读(16) 评论(0) 推荐(0) 编辑

[Google] LeetCode 2135 Count Words Obtained After Adding a Letter

摘要: You are given two 0-indexed arrays of strings startWords and targetWords. Each string consists of lowercase English letters only. For each string in t 阅读全文

posted @ 2022-09-04 01:11 Blackzxy 阅读(14) 评论(0) 推荐(0) 编辑