The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the ...
分类:
其他好文 时间:
2018-10-01 17:55:47
阅读次数:
180
题目 Given a non empty array of digits representing a non negative integer, plus one to the integer. The digits are stored such that the most significan ...
分类:
其他好文 时间:
2018-10-01 11:56:00
阅读次数:
238
写一个类,继承Thread类,覆盖Thread类中继承来的run()方法,这样就写好了自定义的线程类。 继承java.lang.Thread类: 启动线程: 写一个类,实现Runable接口,实现其中的run()方法。这种方法写好的类的对象需要作为线程类创建对象时构造方法的参数。 实现java.la ...
分类:
编程语言 时间:
2018-10-01 00:18:17
阅读次数:
172
Description Consider a single-elimination football tournament involving 2n teams, denoted 1, 2, …, 2n. In each round of the tournament, all teams stil ...
分类:
其他好文 时间:
2018-09-30 22:46:22
阅读次数:
202
单点登录 (Single Sign-On ) 1、同域单点登录 登录的时候,设置cookie的域即可。 2、跨域单点登录 重点是,如何在浏览器端保存登录的标识。 祭图:(脑补) 三个系统: a.aaa.com b.bbb.com s.sso.com 假设条件:用户首次打开系统,未禁用cookie。 ...
分类:
其他好文 时间:
2018-09-29 20:23:18
阅读次数:
139
【转】ES6箭头函数(Arrow Functions) ES6可以使用“箭头”(=>)定义函数,注意是函数,不要使用这种方式定义类(构造器)。 一、语法 1. 具有一个参数的简单函数 var single = a => a single('hello, world') // 'hello, worl ...
分类:
其他好文 时间:
2018-09-29 14:31:11
阅读次数:
158
一、面向对象开发中的七大设计原则 软件开发中最核心的思想就是“高内聚,低耦合”,主要的目的也是为了方便后期的维护和变更。下面的设计原则也是依靠这个核心思想衍生出来的。 1、单一职责原则【SINGLE RESPONSIBILITY PRINCIPLE】:单一职责原则想表达的核心思想就是“高内聚”,一个 ...
分类:
其他好文 时间:
2018-09-29 10:16:39
阅读次数:
193
Visual Studio在2010版本后推出了点击项目管理器预览文件的功能,但是对于配置不咋地的旧电脑总是觉得有点卡,下面是解决方案。英文版方法:Tools->Options->Environment->Tabs and Windows->Preview Tab->勾掉Single-click o ...
分类:
其他好文 时间:
2018-09-28 20:32:51
阅读次数:
752
1. 在启动系统出现如下画面时按Enter键进入系统设置页面: 2. 系统设置页面: 3. 按下e键进入: 4. 选择第二项,按e键进入 5. 在ro和root之间输入:single,表示以单用户模式进入系统: 6. 编辑完后按回车键,返回如下画面: 7. 按下b键,启动系统,进入单用户模式,如下: ...
分类:
系统相关 时间:
2018-09-28 12:33:38
阅读次数:
212
HTA - HTML Application APPLICATION Indicates whether the content of the object is an HTML Application (HTA), which is exempt from the security model. ...
分类:
其他好文 时间:
2018-09-28 11:06:03
阅读次数:
737