在写日记的大师兄很洒脱
在写日记的大师兄很洒脱
全部文章
分类
归档
标签
去牛客网
登录
/
注册
在写日记的大师兄很洒脱的博客
全部文章
(共6篇)
题解 | 小米Git
class Solution: def Git(self , matrix: List[str], versionA: int, versionB: int) -> int: n = len(matrix) g = [[] for _ in range(...
2025-07-05
0
15
题解 | 集合的所有子集(二)
# class Solution: def subsets(self , nums: List[int]) -> List[List[int]]: # write code here res,path = [], [] nums.sort...
2025-06-15
0
19
题解 | 二分查找-II
开区间写法
2025-05-22
0
28
题解 | 把字符串转换成整数(atoi)
class Solution: def StrToInt(self , s: str) -> int: x = 0 sign = 1 flag = True for c in s: if flag ...
2025-05-21
0
34
题解 | 加起来和为目标值的组合(二)
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param num int整型一维数组 # @param target int整型 # @return int整型二维数组 # class Solution: def combination...
2025-05-07
0
42
题解 | 集合的所有子集(一)
class Solution: def subsets(self , S: List[int]) -> List[List[int]]: # write code here res = [] def dfs(i:int,path): ...
2025-05-03
0
29