上一页 1 ··· 88 89 90 91 92 93 94 95 96 ··· 127 下一页

2019年9月16日

摘要: 地址 https://www.acwing.com/problem/content/description/156/ 输入格式 输入包含两行。 第一行包含两个整数n和k,分别代表数组长度和滑动窗口的长度。 第二行有n个整数,代表数组的具体数值。 同行数据之间用空格隔开。 输出格式 输出包含两个。 第 阅读全文
posted @ 2019-09-16 13:59 itdef 阅读(293) 评论(0) 推荐(0)

2019年9月15日

摘要: 地址 https://www.acwing.com/problem/content/66/ https://www.acwing.com/problem/content/67/ https://www.acwing.com/problem/content/submission/68/ 三道题都是二叉 阅读全文
posted @ 2019-09-15 23:17 itdef 阅读(231) 评论(0) 推荐(0)
摘要: 挑战编程 刘汝佳 的第一道习题 热身题 熟悉下提交格式 题意 1 #include <iostream> 2 #include <algorithm> 3 4 using namespace std; 5 6 int n, m; 7 8 9 10 11 12 13 int main() 14 { 1 阅读全文
posted @ 2019-09-15 23:06 itdef 阅读(299) 评论(0) 推荐(0)
摘要: oj地址是韩国网站 连接比较慢 https://algospot.com/judge/problem/read/BOGGLE大意如下 输入输出 估摸着很简单 就蹭蹭8个方向DFS 代码写完测试用例过了代码如下 #include <iostream> #include <string> #includ 阅读全文
posted @ 2019-09-15 22:44 itdef 阅读(598) 评论(0) 推荐(0)

2019年9月6日

摘要: 先上总结构图 1 首先来看Dijkstra 1 #include <iostream> 2 #include <algorithm> 3 #include <memory.h> 4 5 6 using namespace std; 7 8 const int N = 550; 9 int n , m 阅读全文
posted @ 2019-09-06 22:52 itdef 阅读(199) 评论(0) 推荐(0)

2019年9月4日

摘要: 地址 https://www.acwing.com/problem/content/description/72/ 输入一个正数s,打印出所有和为s的连续正数序列(至少含有两个数)。 例如输入15,由于1+2+3+4+5=4+5+6=7+8=15,所以结果打印出3个连续序列1~5、4~6和7~8。 阅读全文
posted @ 2019-09-04 17:19 itdef 阅读(200) 评论(0) 推荐(0)
摘要: 地址 https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/ 给定一个链表,删除链表的倒数第 n 个节点,并且返回链表的头结点。 说明: 给定的 n 保证是有效的。 进阶: 你能尝试使用一趟扫描实现吗? 解法 使用快慢指针 阅读全文
posted @ 2019-09-04 12:55 itdef 阅读(190) 评论(0) 推荐(0)
摘要: 忙于工作 自己的学习准备学习下斗地主的神经网路训练。 深度学习的数据 前期考虑使用蒙特卡洛明牌提供 后期考虑脱离蒙特卡洛使用非完全信息的神经网络进行出牌 有可能的话考虑试试强化学习 有共同探索方向的同学可以留言 大家一起研究! 阅读全文
posted @ 2019-09-04 11:23 itdef 阅读(250) 评论(0) 推荐(0)

2019年9月1日

摘要: 地址 https://www.acwing.com/problem/content/77/ 从扑克牌中随机抽5张牌,判断是不是一个顺子,即这5张牌是不是连续的。 2~10为数字本身,A为1,J为11,Q为12,K为13,大小王可以看做任意数字。 为了方便,大小王均以0来表示,并且假设这副牌中大小王均 阅读全文
posted @ 2019-09-01 19:11 itdef 阅读(251) 评论(0) 推荐(0)
摘要: 地址 https://www.acwing.com/problem/content/description/62/ 输入两个链表,找出它们的第一个公共结点。 当不存在公共节点时,返回空节点。 样例 解法1 由于肯定两个链表头有交集 那么每次移动两个链表头一步,如果移到链表尾则跳转到另一个链表表头继续 阅读全文
posted @ 2019-09-01 18:41 itdef 阅读(165) 评论(0) 推荐(0)
上一页 1 ··· 88 89 90 91 92 93 94 95 96 ··· 127 下一页

导航