会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
晴朗
浮躁的人容易问:我到底该学什么;----别问,学就对了; 浮躁的人容易问:c++有钱途吗;----建议你去抢银行; 浮躁的人容易说:我要中文版!我英文不行!----不行?学 呀! 浮躁的人分两种:只观望而不学的人;只学而不坚持的人; 浮躁的人永远不是一个高手。
博客园
首页
新随笔
联系
订阅
管理
2018年4月10日
leetcode 44. Wildcard Matching
摘要: 动态规划: 1:状态转移方程 if('?' == p[j - 1] || s[i - 1] == p[j - 1])vvb[i][j] = vvb[i - 1][j - 1]; if('*' == p[j - 1])vvb[i][j] = vvb[i][j - 1] || vvb[i - 1][j
阅读全文
posted @ 2018-04-10 12:10 HYDhyd
阅读(119)
评论(0)
推荐(0)
2017年2月4日
sql 学习相关问题
摘要: 恢复内容开始 1.sql上面改变列的数据类型是 ALTER TABLE table_nameALTER COLUMN column_name datatype mysql上面是ALTER TABLE table_namemodify COLUMN column_name datatype 注意这个问
阅读全文
posted @ 2017-02-04 11:26 HYDhyd
阅读(134)
评论(0)
推荐(0)
2016年12月7日
windows api 程序
摘要: #include "StdAfx.h" #include #include LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM); int WINAPI WinMain(HINSTANCE hinstance,HINSTANCE hPrevinstance,PSTR szCmdLine,int iCmdShow) { static TCHAR s...
阅读全文
posted @ 2016-12-07 21:44 HYDhyd
阅读(225)
评论(0)
推荐(0)
2016年12月5日
python 小爬虫
摘要: import reimport urllibdef getHtml(url): page=urllib.urlopen(url); html=page.read() return htmldef getImage(html): reg = r'src="(.*?\.jpg)"' imgre = re
阅读全文
posted @ 2016-12-05 17:07 HYDhyd
阅读(118)
评论(0)
推荐(0)
2016年10月9日
动态规划,网易秋招
摘要: [编程题]暗黑的字符串 一个只包含'A'、'B'和'C'的字符串,如果存在某一段长度为3的连续子串中恰好'A'、'B'和'C'各有一个,那么这个字符串就是纯净的,否则这个字符串就是暗黑的。例如:BAACAACCBAAA 连续子串"CBA"中包含了'A','B','C'各一个,所以是纯净的字符串AAB
阅读全文
posted @ 2016-10-09 15:53 HYDhyd
阅读(244)
评论(0)
推荐(0)
leetcode 3
摘要: 0(n*n)时间复杂度 注意ASCII的取值范围 只需要确定起始位置即可,暴力 0(n) 中间加了优化之间吧重复部分跳过相当于遍历两边
阅读全文
posted @ 2016-10-09 11:01 HYDhyd
阅读(196)
评论(0)
推荐(0)
2016年10月8日
leetcode 27 水
摘要: 1 class Solution { 2 public: 3 int removeElement(vector& nums, int val) { 4 int length=nums.size(); 5 int j=0; 6 for(int i=0;i<length;i++) { 7 if(nums[i]...
阅读全文
posted @ 2016-10-08 14:44 HYDhyd
阅读(121)
评论(0)
推荐(0)
leetcode 21 list merge
摘要: 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *next; 6 * ListNode(int x) : val(x), next(NULL) {} 7 * }; 8 */ 9 class Solutio...
阅读全文
posted @ 2016-10-08 14:29 HYDhyd
阅读(163)
评论(0)
推荐(0)
leetcode 15 3sum & leetcode 18 4sum
摘要: 4sum:
阅读全文
posted @ 2016-10-08 10:22 HYDhyd
阅读(231)
评论(0)
推荐(0)
2016年9月29日
leetcode 389 map iterator 的使用
摘要: 1 class Solution { 2 public: 3 char findTheDifference(string s, string t) { 4 mapMap_Temp; 5 for(int i=0;i::iterator iter; 10 for(iter=Map_Temp.begin();iter!=Map_Temp...
阅读全文
posted @ 2016-09-29 18:36 HYDhyd
阅读(264)
评论(0)
推荐(0)
下一页
公告