HCI Vendor Specific Commands 1.1 HCI_EXT_SetRxGainCmd This command is used to set the RF receiver gain. The default system value for this feature is s... ...
分类:
其他好文 时间:
2018-11-25 16:07:08
阅读次数:
353
1 inline int Power(int a, int n, int b) 2 { 3 int result = 1; 4 while(n) 5 { 6 if(n & 1) result = result * a % b; 7 a = a * a % b; 8 n >>= 1; 9 } 10 .... ...
分类:
其他好文 时间:
2018-11-25 14:38:27
阅读次数:
166
https://leetcode.com/problems/subsets-ii/ Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power s ...
分类:
其他好文 时间:
2018-11-25 01:20:04
阅读次数:
165
题目大意:略 题目里所有的运算都是幂运算,所以转化成指数的加减 由于搜索层数不会超过$2*log$层,所以用一个栈存储哪些数已经被组合出来了,不必暴力枚举哪些数已经被搜出来了 然后跑$iddfs$就行了 可以加一个剪枝,设你选择的最大迭代深度为K,现在如果当前组合出的数$x$,满足$x*2^{K-d ...
分类:
其他好文 时间:
2018-11-24 11:40:40
阅读次数:
173
函数式编程到底是什么?本文将详解其概念,同时分享怎样在Python中使用函数式编程。主要内容包括列表解析式和其他形式的解析式。函数式模在命令式模型中,执行程序的方式是给计算机一系列指令让它执行。执行过程中计算机会改变状态。例如,比如A的初始值是5,后来改变了A的值。那么A就是个变量,而变量的意思就是包含的值会改变。而在函数式模式中,你不需要告诉计算机做什么,而是告诉计算机是什么。比如数字的最大公约
分类:
编程语言 时间:
2018-11-22 22:31:43
阅读次数:
197
1 DECLARE @digital INT 2 SET @digital = 2 3 4 --截断小数位 5 SELECT CAST(CAST (15.33373333 *Power(10,@digital) as int)as decimal(15,6))/Power(10,@digital) ... ...
分类:
数据库 时间:
2018-11-22 16:14:48
阅读次数:
232
1.lombok 不用写get,set方法 2.MyBatisCodeHelperPro 3.Rainbow Brackets 彩虹括号 5.activate power mode 动感打字 7.Background Image Plus 给编辑器换个背景 8.Markdown support Id ...
分类:
其他好文 时间:
2018-11-21 22:18:52
阅读次数:
285
telint命令用于切换当前正在运行的Linux系统的运行等级 Send control commands to the init daemon. --help Show this help --no-wall Don't send wall message before halt/power-of ...
分类:
系统相关 时间:
2018-11-21 12:29:21
阅读次数:
222
Egg单元测试 单元测试,为应用的稳定性提供了一层保障。代码改变之后可以通过测试结果判断代码的改动是够会影响结果 必须存放在 test 文件下, 以.test.js 结尾,用以区分 断言库power-assert,没有 API 就是最好的 API ,详细的报错信息 egg 中使用了 egg-bin ...
分类:
其他好文 时间:
2018-11-21 12:17:49
阅读次数:
148
为了更好的优化程序性能,我们必须找到性能瓶颈点,“好钢用在刀刃上”才能取 得好的效果,否则可能白做工作。 为了找到关键路径,我们可以使用profilng技术,在linux平台上,我们可以使用gprof和oprofile工 具。 gprof是GNU工具之一,它在编译的时候在每个函数的出入口加入了pro ...
分类:
系统相关 时间:
2018-11-20 11:31:34
阅读次数:
159