最近参加完百度强化学习7日打卡营的学习班,初步了解了一些强化学习的算法。学习完后,试着开始玩玩atari的游戏,老师给了一个demo,https://github.com/PaddlePaddle/PARL/tree/develop/examples/DQN_variant,model,algori ...
分类:
其他好文 时间:
2020-06-26 21:56:31
阅读次数:
82
7-3 Is It An AVL Tree (25分) In computer science, an AVL tree (Georgy Adelson-Velsky and Evgenii Landis' tree, named after the inventors) is a self-bal ...
分类:
其他好文 时间:
2020-06-26 14:44:26
阅读次数:
84
For an undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible root ...
分类:
其他好文 时间:
2020-06-26 10:21:01
阅读次数:
53
重点推荐这种解析方式,xpath是最常用且最便捷高效的一种解析方式,通用性 1、解析原理 1、实例化一个etree的对象,且需要将被解析的页面源码数据加载到改对象中。 2、调用etree对象中的xpath方法结合表达式实现标签的定位和内容的捕获 2、环境的安装 1、pip install lxml ...
分类:
其他好文 时间:
2020-06-25 23:43:50
阅读次数:
66
virtualbox 使用问题 使用vmdk磁盘 仅有一个vmdk文件 直接“新建”->“不添加虚拟磁盘” “设置” 导入即可 分割vmdk磁盘文件 这里类似这种文件 nsfoxer@nsfoxerpc ~/t/centos> tree . . ├── centos-1.vmdk ├── cento ...
分类:
其他好文 时间:
2020-06-25 21:42:31
阅读次数:
81
Substring with Concatenation of All Words (H) 题目 You are given a string, s, and a list of words, words, that are all of the same length. Find all star ...
分类:
其他好文 时间:
2020-06-25 21:20:39
阅读次数:
56
一、下载tomcat源码 https://github.com/apache/tomcat/tree/8.5.x 二、建立pom 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/PO ...
分类:
其他好文 时间:
2020-06-25 19:55:28
阅读次数:
77
题目描述: 给定一个二叉树,编写一个函数来获取这个树的最大宽度。树的宽度是所有层中的最大宽度。这个二叉树与满二叉树(full binary tree)结构相同,但一些节点为空。 每一层的宽度被定义为两个端点(该层最左和最右的非空节点,两端点间的null节点也计入长度)之间的长度。 解题原理: 宽度优 ...
分类:
其他好文 时间:
2020-06-25 15:30:17
阅读次数:
49
首先把两个字符串拼在一起,中间夹一个不可能出现的字符。 然后就是一个简单容斥,我们假设给的字符串为 \(S_1\) 和 \(S_2\),新拼成的字符串为 \(S\),那么答案就是求 \(same(S)-same(S_1)-same(S_2)\),其中 \(same(s)\) 表示 \(s\) 这个字 ...
分类:
其他好文 时间:
2020-06-25 14:07:32
阅读次数:
48