China cuts bank reserves by $100m to cushion US tariffs中国央行定向降准释放千亿美元资金China is cutting the amount of reserves the country’s banks are required to kee ...
分类:
其他好文 时间:
2018-10-08 00:41:10
阅读次数:
153
废话少说,直接上代码: 当函数为返回值,跟它同一等级的变量就会保留下来。 ...
分类:
其他好文 时间:
2018-10-08 00:37:54
阅读次数:
134
二柱子的软件 支持真分数的四则运算 可定义出题数量 #define _CRT_SECURE_NO_DEPRECATE#include<stdio.h>#include<Windows.h>#include<time.h>int main(){ int a, b, c, d, e, f, g, k; ...
分类:
其他好文 时间:
2018-10-07 23:24:49
阅读次数:
162
Problem Description 给出一个只由小写英文字符a,b,c...y,z组成的字符串S,求S中最长回文串的长度.回文就是正反读都是一样的字符串,如aba, abba等 Input 输入有多组case,不超过120组,每组输入为一行小写英文字符a,b,c...y,z组成的字符串S两组ca ...
分类:
其他好文 时间:
2018-10-07 20:53:34
阅读次数:
160
装饰模式(Decorator) 动态的为一个对象增加额外的职责,为对象增加功能时,使用装饰模式比单纯的子类继承要更加的灵活。 装饰模式结构图: C++ BaseClass对象抽象基类: ConcreteClass具体对象实现类: ConcreteDecoratorA具体装饰是实现类: CSharp ...
分类:
其他好文 时间:
2018-10-07 19:47:25
阅读次数:
152
Given an array nums and a value val, remove all instances of that value in-place and return the new length. Do not allocate extra space for another ar ...
分类:
其他好文 时间:
2018-10-07 19:46:43
阅读次数:
177
vue 15 rem less 在计算手机端页面的时候, 使用rem和less的方式, 可以方便的设置需要的大小等 1, 在index.html中添加rem的script 代码 在head中添加 2, 安装 less 等 3, 在 config/webpack.base.conf.js 中添加 le ...
分类:
其他好文 时间:
2018-10-07 19:25:00
阅读次数:
181
利用前序序列和中序序列重建二叉树并通过层序遍历验证生成的二叉树 ...
分类:
编程语言 时间:
2018-10-07 18:55:27
阅读次数:
217
代码实现的不同方法用(#if 0 ..... #endif)注释 1 #include<Windows.h> 2 #include<stdio.h> 3 #if 0 4 //这种方法使用两个指针来遍历数组,运用两个for循环,时间复杂度为O(n^2),空间复杂度为O(1) 5 void test() ...
分类:
编程语言 时间:
2018-10-07 18:03:15
阅读次数:
181
1 #include 2 #include 3 #include 4 int main() 5 { int i,number; 6 double out; 7 srand((unsigned) time(NULL)); 8 for (i=0; i<50; i++) 9 { 10 number = r... ...
分类:
其他好文 时间:
2018-10-07 17:57:08
阅读次数:
128