xinyu04

导航

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 30 下一页

2022年9月10日 #

[Google] LeetCode 777 Swap Adjacent in LR String 思维

摘要: In a string composed of 'L', 'R', and 'X' characters, like "RXXLRXRXL", a move consists of either replacing one occurrence of "XL" with "LX", or repla 阅读全文

posted @ 2022-09-10 23:49 Blackzxy 阅读(15) 评论(0) 推荐(0) 编辑

2022年9月9日 #

[Google] LeetCode 792 Number of Matching Subsequences

摘要: Given a string s and an array of strings words, return the number of words[i] that is a subsequence of s. A subsequence of a string is a new string ge 阅读全文

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

[Google] LeetCode 1631 Path With Minimum Effort 优先队列

摘要: You are a hiker preparing for an upcoming hike. You are given heights, a 2D array of size rows x columns, where heights[row][col] represents the heigh 阅读全文

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

2022年9月7日 #

[Google] LeetCode 1554 Strings Differ by One Character 哈希

摘要: Given a list of strings dict where all the strings are of the same length. Return true if there are 2 strings that only differ by 1 character in the s 阅读全文

posted @ 2022-09-07 05:41 Blackzxy 阅读(75) 评论(0) 推荐(0) 编辑

2022年9月6日 #

[Google] LeetCode 2172 Maximum AND Sum of Array 状态压缩DP

摘要: You are given an integer array nums of length n and an integer numSlots such that 2 * numSlots >= n. There are numSlots slots numbered from 1 to numSl 阅读全文

posted @ 2022-09-06 02:34 Blackzxy 阅读(58) 评论(0) 推荐(0) 编辑

2022年9月5日 #

[Google] LeetCode 1146 Snapshot Array

摘要: Implement a SnapshotArray that supports the following interface: SnapshotArray(int length) initializes an array-like data structure with the given len 阅读全文

posted @ 2022-09-05 16:56 Blackzxy 阅读(11) 评论(0) 推荐(0) 编辑

MathProblem 84 12 pearls and a scale problem

摘要: In front of you are 12 pearls, 11 being real and one fake. The real ones all weigh the same and the fake one differs in weight from the real ones (may 阅读全文

posted @ 2022-09-05 03:39 Blackzxy 阅读(10) 评论(0) 推荐(0) 编辑

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 阅读(14) 评论(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 阅读(37) 评论(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 阅读(15) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 30 下一页