会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hopskin1
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
12
下一页
2018年10月9日
632. Smallest Range
摘要: 代码
阅读全文
posted @ 2018-10-09 00:28 hopskin1
阅读(143)
评论(0)
推荐(0)
2018年10月7日
76. Minimum Window Substring
摘要: 最小窗口字串 参考 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
阅读(141)
评论(0)
推荐(0)
2018年10月4日
701. Insert into a Binary Search Tree
摘要: 经典题目:给定一个二叉搜索树,插入一个值为val的新节点
阅读全文
posted @ 2018-10-04 16:52 hopskin1
阅读(277)
评论(0)
推荐(0)
894. All Possible Full Binary Trees
摘要: 列出所有可能的完全二叉树
阅读全文
posted @ 2018-10-04 16:29 hopskin1
阅读(276)
评论(0)
推荐(0)
leetcode 867. Transpose Matrix
摘要: python解法
阅读全文
posted @ 2018-10-04 11:42 hopskin1
阅读(105)
评论(0)
推荐(0)
leetcode 565. Array Nesting
摘要: 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
阅读(189)
评论(0)
推荐(0)
861. Score After Flipping Matrix
摘要: 对于矩阵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
阅读(279)
评论(0)
推荐(0)
2018年10月3日
905. Sort Array By Parity
摘要: 将数组排序 奇数在前 偶数在后 用快速排序中的partition算法
阅读全文
posted @ 2018-10-03 20:21 hopskin1
阅读(120)
评论(0)
推荐(0)
386. Lexicographical Numbers
摘要: 按字典顺序输出1-n 迭代解法
阅读全文
posted @ 2018-10-03 18:29 hopskin1
阅读(98)
评论(0)
推荐(0)
leetcode 851. Loud and Rich
摘要: python代码
阅读全文
posted @ 2018-10-03 17:47 hopskin1
阅读(191)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
12
下一页
公告