摘要: 一个很有趣的个人博客,不信你来撩 fangzengye.com class Solution: def pathInZigZagTree(self, label: int) -> List[int]: res = [] while label != 1: res.append(label) labe 阅读全文
posted @ 2020-03-07 10:35 开源的Boy 阅读(48) 评论(0) 推荐(0)
摘要: 一个很有趣的个人博客,不信你来撩 fangzengye.com class Solution: def convert(self, s: str, numRows: int) -> str: if numRows==1:return s res = ['' for _ in range(numRow 阅读全文
posted @ 2020-03-07 10:33 开源的Boy 阅读(37) 评论(0) 推荐(0)
摘要: 一个很有趣的个人博客,不信你来撩 fangzengye.com class Solution: def wiggleSort(self, nums: List[int]) -> None: """ Do not return anything, modify nums in-place instea 阅读全文
posted @ 2020-03-07 10:29 开源的Boy 阅读(97) 评论(0) 推荐(0)
摘要: 一个很有趣的个人博客,不信你来撩 fangzengye.com class Solution: def canConstruct(self, ransomNote: str, magazine: str) -> bool: a = list(ransomNote);b = list(magazine 阅读全文
posted @ 2020-03-07 10:25 开源的Boy 阅读(56) 评论(0) 推荐(0)
摘要: 一个很有趣的个人博客,不信你来撩 fangzengye.com class Solution: def isValidSudoku(self, board: List[List[str]]) -> bool: col = [[] for _ in range(9)] raw = [[] for _ 阅读全文
posted @ 2020-03-07 10:22 开源的Boy 阅读(72) 评论(0) 推荐(0)
摘要: 一个很有趣的个人博客,不信你来撩 fangzengye.com import queue class MaxQueue: def __init__(self): self.deque = queue.deque() def max_value(self) -> int: return max(sel 阅读全文
posted @ 2020-03-07 10:03 开源的Boy 阅读(54) 评论(0) 推荐(0)
摘要: 一个很有趣的个人博客,不信你来撩 fangzengye.com import queue class MaxQueue: def __init__(self): self.deque = queue.deque() def max_value(self) -> int: return max(sel 阅读全文
posted @ 2020-03-07 09:59 开源的Boy 阅读(60) 评论(0) 推荐(0)
摘要: 一个很有趣的个人博客,不信你来撩 fangzengye.com label = label ^(1 << (label.bit_length() - 1)) - 1 对部分位取反0000 阅读全文
posted @ 2020-03-05 14:19 开源的Boy 阅读(44) 评论(0) 推荐(0)
摘要: 一个很有趣的个人博客,不信你来撩 fangzengye.com Cascade 分类器 Haar-cascade Detection in OpenCV 使用提前训练好的Haar-cascade Detection 来发现眼睛和脸部 from __future__ import print_func 阅读全文
posted @ 2020-03-03 21:49 开源的Boy 阅读(143) 评论(0) 推荐(0)
摘要: 一个很有趣的个人博客,不信你来撩 fangzengye.com 图片去燥 主要函数 cv.fastNlMeansDenoising()对灰度图像去燥 cv.fastNlMeansDenoisingColored() 对彩色图像去燥 cv.fastNlMeansDenoisingMulti()对灰度图 阅读全文
posted @ 2020-03-03 21:25 开源的Boy 阅读(155) 评论(0) 推荐(0)