Given a sequence of K integers { N?1??, N?2??, ..., N?K?? }. A continuous subsequence is defined to be { N?i??, N?i+1??, ..., N?j?? } where 1≤i≤j≤K. T ...
分类:
其他好文 时间:
2018-09-29 14:24:29
阅读次数:
146
A sequence of numbers is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the ...
分类:
其他好文 时间:
2018-09-29 00:05:07
阅读次数:
263
AsnycTask 原理就是“线程池 + Handler”的组合。 AsyncTask 里的线程池: private static final int CPU_COUNT = Runtime.getRuntime().availableProcessors(); private static fin ...
分类:
其他好文 时间:
2018-09-28 12:44:19
阅读次数:
269
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=0.5,minimum-scale=0.5,maximum-scale=1">(灰色部分可以不写) viewport 视口(可视区窗口) ...
分类:
移动开发 时间:
2018-09-28 11:09:07
阅读次数:
175
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: AC code: ...
分类:
其他好文 时间:
2018-09-27 22:57:36
阅读次数:
173
We are to write the letters of a given string S, from left to right into lines. Each line has maximum width 100 units, and if writing a letter would c ...
分类:
编程语言 时间:
2018-09-27 12:03:36
阅读次数:
157
Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Input: [1,2,3] Output: 6 Example 2: Inp ...
分类:
其他好文 时间:
2018-09-27 01:34:48
阅读次数:
130
#变量作用域 -变量有作用范围限制 -分类:按照作用域分类 -全局(global):在函数外部定义 -局部(local):在函数内部定义 -变量的作用范围: -全局变量:在整个全局范围都有效 -全局变量在局部可以使用(即函数内部可以访问函数外部定义的变量) -全局变量在局部范围可以使用 -局部变量在 ...
分类:
编程语言 时间:
2018-09-26 10:13:45
阅读次数:
107
原文:Photoshop和WPF双剑配合,打造炫酷个性的进度条控件现在如果想打造一款专业的App,UI的设计和操作的简便性相当重要。UI设计可以借助Photoshop或者AI等设计工具,之前了解到WPF设计工具Expression Blend可以直接导入PSD文件或者AI设计文件(当然不是全部特征支... ...
前言: 因为工作的原因,要写windows下的基线检查脚本。之前没接触过,在网上找了半天也没找到现成的,无奈只好自己研究,最后还是成功完成了工作。 在我编写之后发现windows下的基线基本就是检查注册表表项。但也有例外。windows组策略有些并不存在于注册表中,那么就要用到组策略命令行工具sec ...