- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 LeetCode 741. Cherry Pickup 传纸条 动态规划
You are given an n x n grid representing a field of cherries, each cell is one of three possible integers.0 means the cell is empty, so you can pass through,1 means the cell contains a cherry that you can pick up and pass through, or-1 means the cell co
2020-12-27 22:08:55 240
原创 Python打印某个对象的成员变量值[Debug]
如下import jsonclass Trie: def __init__(self, a, b): self.a,self.b = a,brt = Trie(2,3)attrs = vars(rt)print(', '.join("%s: %s" % item for item in attrs.items()))
2020-12-11 10:32:59 1388
原创 LeetCode 480. Sliding Window Median 延迟双堆
Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two middle value.Examples:[2,3,4], the median is3[2,3], the median is(2 + 3) / 2 = 2.5Given an arr...
2020-12-06 23:22:43 123
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人