会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
itdef
上一页
1
···
95
96
97
98
99
100
101
102
103
···
127
下一页
2019年5月12日
acwing 471. 棋盘 解题记录
摘要: 题解地址 https://www.acwing.com/problem/content/description/473/ 有一个m×m的棋盘,棋盘上每一个格子可能是红色、黄色或没有任何颜色的。 你现在要从棋盘的最左上角走到棋盘的最右下角。 任何一个时刻,你所站在的位置必须是有颜色的(不能是无色的),
阅读全文
posted @ 2019-05-12 15:08 itdef
阅读(254)
评论(0)
推荐(0)
2019年5月2日
ACWING 95 费解的开关 解题记录
摘要: https://www.acwing.com/problem/content/97/ 1 #include <iostream> 2 #include <cstring> 3 4 using namespace std; 5 6 const int INF = 100000; 7 8 char g[
阅读全文
posted @ 2019-05-02 23:29 itdef
阅读(318)
评论(0)
推荐(0)
dfs的几个基础示例 acwin 91~94
摘要: 1 #include <iostream> 2 #include <vector> 3 4 using namespace std; 5 6 vector<int> result; 7 vector<int> v; 8 int n; 9 10 void dfs(int i) 11 { 12 if(i
阅读全文
posted @ 2019-05-02 22:08 itdef
阅读(476)
评论(0)
推荐(0)
2019年5月1日
前缀和的一个应用
摘要: LEETCODE 1031. 两个非重叠子数组的最大和 给出非负整数数组 A ,返回两个非重叠(连续)子数组中元素的最大和,子数组的长度分别为 L 和 M。(这里需要澄清的是,长为 L 的子数组可以出现在长为 M 的子数组之前或之后。) 从形式上看,返回最大的 V,而 V = (A[i] + A[i
阅读全文
posted @ 2019-05-01 14:19 itdef
阅读(209)
评论(0)
推荐(0)
2019年4月17日
算法进阶指南 资料地址
摘要: http://contest-hunter.org:83/ 题库 github https://github.com/lydrainbowcat/tedukuri www.acwing.com
阅读全文
posted @ 2019-04-17 21:35 itdef
阅读(247)
评论(0)
推荐(0)
2019年4月13日
leetcode 算法分类
摘要: 来源 https://www.bilibili.com/video/av42947553 advance 二分查找 bst dp 敲黑板 重点 图 graph 查找 search 很多都和DP吻合? 树
阅读全文
posted @ 2019-04-13 21:56 itdef
阅读(316)
评论(0)
推荐(0)
2019年1月24日
斗地主 ai的一些资料
摘要: zt https://programming.iteye.com/blog/1491470 https://blog.csdn.net/abc1234679/article/details/79458376 斗地主AI设计 一、牌型 1 火箭:大小王在一起的牌型,即双王牌,此牌型最大,什么牌型都可以
阅读全文
posted @ 2019-01-24 14:00 itdef
阅读(733)
评论(0)
推荐(0)
2019年1月1日
leetcode 刷题进展
摘要: 最近没发什么博客了 凑个数 我的leetcode刷题进展 https://gitee.com/def/leetcode_practice 个人以为 刷题在透不在多 前200的吃透了 足以应付非算法岗的绝大多数情况了
阅读全文
posted @ 2019-01-01 10:46 itdef
阅读(224)
评论(0)
推荐(0)
2018年11月11日
BCode解码练习
摘要: 在学习BT协议中的一个小练习 参考了 https://github.com/airtrack/bitwave 具体B编码解释 可以自行搜索或者参考 这篇文章 bittorrent 学习(一) 种子文件分析与bitmap位图 代码 1 #pragma once 2 #include "pre.h" 3
阅读全文
posted @ 2018-11-11 21:37 itdef
阅读(966)
评论(0)
推荐(0)
2018年11月8日
bittorrent 学习(四) tracker peer通讯
摘要: 看看 tracker.c文件 http_encode() 为http发送进行编码转换 1 int http_encode(unsigned char *in,int len1,char *out,int len2) 2 { 3 int i, j; 4 char hex_table[16] = "01
阅读全文
posted @ 2018-11-08 14:44 itdef
阅读(433)
评论(0)
推荐(0)
上一页
1
···
95
96
97
98
99
100
101
102
103
···
127
下一页
导航
博客园
首页
新随笔
联系
订阅
管理
公告