会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
THE WAY I AM
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
下一页
2019年3月16日
1003. Check If Word Is Valid After Substitutions Medium检查替换后的词是否有效
摘要: 网址:https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/ 参考:https://leetcode.com/problems/check-if-word-is-valid-after-substitutio
阅读全文
posted @ 2019-03-16 14:01 549
阅读(96)
评论(0)
推荐(0)
2019年3月13日
32. Longest Valid Parentheses最长有效括号
摘要: 参考: 1. https://leetcode.com/problems/longest-valid-parentheses/solution/ 2. https://blog.csdn.net/accepthjp/article/details/52439449 知道是用动态规划解决,但是写不出状
阅读全文
posted @ 2019-03-13 21:57 549
阅读(143)
评论(0)
推荐(0)
2019年3月11日
1002. Find Common Characters查找常用字符
摘要: 参考:https://leetcode.com/problems/find-common-characters/discuss/247573/C%2B%2B-O(n)-or-O(1)-two-vectors 地址:https://leetcode.com/problems/find-common-c
阅读全文
posted @ 2019-03-11 23:33 549
阅读(143)
评论(0)
推荐(0)
2019年2月23日
338. Counting Bits_比特位计数_简单动态规划
摘要: https://leetcode.com/problems/counting-bits/ 这是初步了解动态规划后做的第一道题,体验还不错。。。 看完题目要求后,写出前10个数的二进制数,发现了以下规律: 2的幂的二进制数中只有一个1 若n不是2的幂,可以拆分为两个数的和(a+b),a为比n小的最接近
阅读全文
posted @ 2019-02-23 19:05 549
阅读(97)
评论(0)
推荐(0)
2019年2月21日
Rail_UVa514_栈
摘要: 1 /* 2 https://vjudge.net/problem/UVA-514 3 */ 4 #include "pch.h" 5 #include 6 #include 7 #include 8 using namespace std; 9 const int MAXN = 1000 + 10; 10 int n, target[MAXN]; 11 12 int...
阅读全文
posted @ 2019-02-21 11:14 549
阅读(149)
评论(0)
推荐(0)
2019年1月11日
784. Letter Case Permutation C++字母大小写全排列
摘要: 网址:https://leetcode.com/problems/letter-case-permutation/ basic backtracking
阅读全文
posted @ 2019-01-11 20:09 549
阅读(164)
评论(0)
推荐(0)
2018年12月19日
C语言实现哈夫曼编码(最小堆,二叉树)
摘要: // 文件中有通过QT实现的界面#include #include #include typedef struct HNode *Heap; /* 堆的类型定义 */ typedef struct SData myData; typedef struct SData *HuffmanTree; typedef struct Ans SAns; struct Ans // 存储最终结果 {...
阅读全文
posted @ 2018-12-19 16:40 549
阅读(1878)
评论(0)
推荐(0)
2018年12月5日
559. Maximum Depth of N-ary Tree C++N叉树的最大深度
摘要: 网址:https://leetcode.com/problems/maximum-depth-of-n-ary-tree/ 很简单的深度优先搜索 设定好递归返回的条件和值
阅读全文
posted @ 2018-12-05 21:38 549
阅读(117)
评论(0)
推荐(0)
2018年11月27日
27. Remove Element C++移除元素
摘要: 网址:https://leetcode.com/problems/remove-element/ 双指针(广义)
阅读全文
posted @ 2018-11-27 23:17 549
阅读(130)
评论(0)
推荐(0)
26. Remove Duplicates from Sorted Array C++ 删除排序数组中的重复项
摘要: https://leetcode.com/problems/remove-duplicates-from-sorted-array/ 双指针,注意初始时左右指针指向首元素!
阅读全文
posted @ 2018-11-27 22:31 549
阅读(127)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页