上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要: 代码 阅读全文
posted @ 2018-10-09 00:28 hopskin1 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 最小窗口字串 参考 https://www.cnblogs.com/grandyang/p/4340948.html 可以用数组代替hashmap //unordered_map<char,int> letterCnt;vector letterCnt(256,0); 阅读全文
posted @ 2018-10-07 23:33 hopskin1 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 经典题目:给定一个二叉搜索树,插入一个值为val的新节点 阅读全文
posted @ 2018-10-04 16:52 hopskin1 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 列出所有可能的完全二叉树 阅读全文
posted @ 2018-10-04 16:29 hopskin1 阅读(272) 评论(0) 推荐(0) 编辑
摘要: python解法 阅读全文
posted @ 2018-10-04 11:42 hopskin1 阅读(99) 评论(0) 推荐(0) 编辑
摘要: A zero-indexed array A of length N contains all integers from 0 to N-1. Find and return the longest length of set S, where S[i] = {A[i], A[A[i]], A[A[ 阅读全文
posted @ 2018-10-04 11:24 hopskin1 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 对于矩阵A(M*N) 行是否翻转。每一行的第一个数必须为1,因为它的相当于2^(N-1) 列是否翻转。 参考 https://leetcode.com/problems/score-after-flipping-matrix/discuss/143722/C++JavaPython-Easy-and 阅读全文
posted @ 2018-10-04 10:56 hopskin1 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 将数组排序 奇数在前 偶数在后 用快速排序中的partition算法 阅读全文
posted @ 2018-10-03 20:21 hopskin1 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 按字典顺序输出1-n 迭代解法 阅读全文
posted @ 2018-10-03 18:29 hopskin1 阅读(90) 评论(0) 推荐(0) 编辑
摘要: python代码 阅读全文
posted @ 2018-10-03 17:47 hopskin1 阅读(185) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 12 下一页