1.何谓方法 * Java方法是语句的集合,它们在一起执行一个功能。 * 方法是解决一类问题的步骤的有序组合 * 方法包含于类或对象中 * 方法在程序中被创建,在其他地方被引用 * 设计方法的原则:方法的本意是功能块,就是实现某个功能的语句块的集合。我们设计方法的 时候,最好保持方法的原子性,就是一 ...
分类:
编程语言 时间:
2020-06-28 15:07:07
阅读次数:
58
Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. Example 1: Input: n = 12 O ...
分类:
其他好文 时间:
2020-06-28 09:27:41
阅读次数:
56
Pop Sequence:: Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are supposed to te ...
分类:
其他好文 时间:
2020-06-27 13:25:15
阅读次数:
53
目标 关机/重启 shutdown 查看或配置网卡信息 ifconfig ping 远程登录和复制文件 ssh scp 01. 关机/重启 序号命令对应英文作用 01 shutdown 选项 时间 shutdown 关机/重新启动 1.1 shutdown shutdown 命令可以 安全 关闭 或 ...
分类:
系统相关 时间:
2020-06-27 11:46:39
阅读次数:
73
Combination Sum II (M) 题目 Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidate ...
分类:
其他好文 时间:
2020-06-27 10:04:01
阅读次数:
52
Range Sum Query - Immutable (E) 题目 Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Give ...
分类:
其他好文 时间:
2020-06-27 09:44:58
阅读次数:
46
恢复内容开始 Range Sum Query 2D - Immutable (M) 题目 Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left cor ...
分类:
其他好文 时间:
2020-06-27 09:36:59
阅读次数:
61
'''yield关键字的使用:yield关键字:yield < > 生成器生成器是一个不断产生值的函数yield语句的函数就是一个生成器生成器每次产生一个值(yield语句),函数被冻结,被唤醒后再产生一个值。为何要有生成器?生成器相比一次列出所有内容的优势 1、更节省存储空间 2、响应更迅速 3、 ...
分类:
其他好文 时间:
2020-06-27 09:29:12
阅读次数:
58
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Functions/Arrow_functions 1. ()=>{c} 无参数return c a=>{c} 一个参数a return c (a,b)=>{c} 两个 ...
分类:
其他好文 时间:
2020-06-26 22:36:39
阅读次数:
82
is not allowed to connect tothis mmysql server 阿里云上安装的mysql,发现用本地电脑的navicat链接不上。通过了解知道了原因,小二在此写了一篇,省的以后自己在碰到。 错误如图。 mysql -u root -p 登录到mysql中。 [root@ ...
分类:
数据库 时间:
2020-06-26 21:56:10
阅读次数:
64