A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p ...
分类:
其他好文 时间:
2018-12-02 01:22:49
阅读次数:
221
集合(set)是一个无序的不重复元素序列。 可以使用大括号 { } 或者 set() 函数创建集合,注意:创建一个空集合必须用 set() 而不是 { },因为 { } 是用来创建一个空字典。 创建格式: 集合内置方法完整列表 ...
分类:
编程语言 时间:
2018-11-30 16:38:21
阅读次数:
182
给定一棵树,每条边上有一个字符(a~v)。对每个节点,求它的子树中一条最长的路径,满足 路径上所有边上的字符可以重新排列成一个回文串。输出其最长长度。 $n\leq 5\times10^5$。 ...
分类:
其他好文 时间:
2018-11-25 21:15:59
阅读次数:
234
CF741D. Arpa’s letter marked tree and Mehrdad’s Dokhtar kosh paths 分析: 最多有一个字符出现奇数次 维护某个状态下深度的最大值,注意是全局深度 写成非递归形式方便理解 代码: cpp include include include ...
分类:
其他好文 时间:
2018-11-25 14:29:42
阅读次数:
221
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any po... ...
分类:
其他好文 时间:
2018-11-24 14:22:01
阅读次数:
219
为了不冒失修复,故采取保守做法,我们知道 MySQL 一个高效的管理工具便是 PhpMyAdmin,而在该管理软件中就包含了对表的检查、分析、修复、优化功能,比起网上提供的含糊命令行来说更安全更简便。 通过实践,在使用检查表功能后确实发现了问题,之后使用修复功能进行了修复,反馈结果每个表都已经 ok ...
分类:
数据库 时间:
2018-11-22 19:03:00
阅读次数:
241
yarn启动spark进行测试时候发现,几台机器上启动executor都失败了,日志如下2018-11-22 14:32:24 WARN YarnAllocator:66 - Container marked as failed: container_1516236189600_0229_01_00 ...
分类:
其他好文 时间:
2018-11-22 16:05:24
阅读次数:
308
首先需要在项目里安装marked格式编辑包 在项目根目录下运行npm install marked 安装依赖包 至此,package.json里面 dependencies 已经添加 "marked": "^0.5.1", 然后在需要显示的组件里编写显示区域: textarea是输入栏显示区域,需要 ...
分类:
其他好文 时间:
2018-11-18 13:10:02
阅读次数:
163
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any po... ...
分类:
其他好文 时间:
2018-11-17 16:17:05
阅读次数:
173
一、题目描述 A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right a ...
分类:
其他好文 时间:
2018-11-16 18:49:07
阅读次数:
197