Largest product in a grid In the 20×20 grid below, four numbers along a diagonal line have been marked in red. 08 02 22 97 38 15 00 40 00 75 04 05 07 ...
分类:
其他好文 时间:
2020-02-17 19:50:33
阅读次数:
116
题目描述 我们要求找出具有下列性质数的个数(包含输入的自然数nn): 先输入一个自然数nn(n \le 1000n≤1000),然后对此自然数按照如下方法进行处理: 不作任何处理; 在它的左边加上一个自然数,但该自然数不能超过原数的一半; 加上数后,继续按此规则进行处理,直到不能再加自然数为止. 输 ...
分类:
其他好文 时间:
2020-02-15 20:36:43
阅读次数:
56
1 """ 2 Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. 3 According to the definition of LCA on Wikipedia: ...
分类:
其他好文 时间:
2020-02-13 22:33:56
阅读次数:
67
关于vi vi/vim 的使用 基本上 vi/vim 共分为三种模式,分别是命令模式(Command mode),输入模式(Insert mode)和底线命令模式(Last line mode)。 这三种模式的作用分别是: 命令模式: 用户刚刚启动 vi/vim,便进入了命令模式。 此状态下敲击键盘 ...
分类:
系统相关 时间:
2020-02-12 20:24:18
阅读次数:
83
1 """ 2 A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). 3 The robot can only move either down or righ ...
分类:
其他好文 时间:
2020-02-12 13:25:27
阅读次数:
66
此篇文章为实现《算法》一书中提到的大部分无向图算法,分为多篇, 即多个Java文件,可以直接复制,便于学习; 第三篇,java无向图的类实现,此篇主要列出实现的方法,需要参考其他类中方法(后续实现); 参考链接:https://www.cnblogs.com/xiaohuiduan/p/113522 ...
分类:
其他好文 时间:
2020-02-11 11:32:41
阅读次数:
69
P1897 电梯里的爱情(超链接) 题目描述 细心的同事发现,小W最近喜欢乘电梯上上下下,究其原因,也许只有小W自己知道:在电梯里经常可以遇到他心中的女神PR。 电梯其实是个很暧昧的地方,只有在电梯里,小W才有勇气如此近距离接近女神,虽然觉得有点不自在,但次数多了,女神也习惯了小W的存在,甚至熟悉到 ...
分类:
其他好文 时间:
2020-02-07 12:40:27
阅读次数:
74
在Jenkins集成服务器上,我们需要安装Maven来编译和打包项目。安装Maven先上传Maven软件到Jenkins服务器 tar -xzf apache-maven-3.6.2-bin.tar.gz 配置环境变量vi /etc/profile export MAVEN_HOME=/opt/mo ...
分类:
其他好文 时间:
2020-01-28 12:10:33
阅读次数:
78
对比call 、bind 、 apply 传参情况下 obj.myFun.call(db,'成都','上海'); // 德玛 年龄 99 来自 成都去往上海 obj.myFun.apply(db,['成都','上海']); // 德玛 年龄 99 来自 成都去往上海 obj.myFun.bind(d ...
分类:
移动开发 时间:
2020-01-24 15:56:15
阅读次数:
133
Unique Paths 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 r ...
分类:
其他好文 时间:
2020-01-21 18:21:24
阅读次数:
105