int func(int n){ int i = 0,sum = 0; while(sum < n) sum += ++i; return i; } 求时间复杂度 A. O(logn) B. O(n^1/2) C. O(n) D. O(nlogn) ++i, i = 1,2,3,4,5,···,k。 ...
分类:
其他好文 时间:
2021-04-10 13:08:02
阅读次数:
0
添加 Swagger 依赖 <!-- https://mvnrepository.com/artifact/io.springfox/springfox-boot-starter --> <dependency> <groupId>io.springfox</groupId> <artifactId ...
分类:
编程语言 时间:
2021-04-10 13:06:00
阅读次数:
0
递归求1-100之和 /* *求1-100之和 */ function sum(num1, num2) { var num = num1 + num2; if (num2 + 1 > 100) { return num; } else { return sum(num, num2 + 1) } } ...
分类:
其他好文 时间:
2021-04-10 13:03:05
阅读次数:
0
#tdsql(noshard) 到 tdsql(noshard) (一般不建议这样导,tdsql 内部建议用多源同步) 如果是导入到tdsql shard 中需要提创建表,指定shardkey 在mysqlagent 导出指定proxy ip 和端口: cd /data/tdsql_run/4002 ...
分类:
数据库 时间:
2021-04-10 12:57:25
阅读次数:
0
var arr =["George","John","Thomas","James","Adrew","Martin"] let mm = arr.splice(2,3) console.log(arr) // 结果 ["George","John","Martin"] 如果arr不赋给某个值,直接 ...
分类:
Web程序 时间:
2021-04-09 13:41:43
阅读次数:
0
获取 itextsharp 包 files 图片文件路径列表 pdfFileName 输出的 pdf文件 public bool MergeFileToPDF(List<string> files,string pdfFileName) { iTextSharp.text.Document docu ...
概览 对象属性的简洁表示法 ES6允许直接写入变量和函数作为对象的属性和方法。 ES6允许在对象中只写属性名,不写属性值。 let foo = 'bar'; let baz = {foo}; console.log(baz); // {foo:'bar'} // same as let baz1 = ...
分类:
其他好文 时间:
2021-04-09 13:14:06
阅读次数:
0
这是我在《程序设计实习》课程上作的pre,目标是对C/C++中字符串的相关内容作一个尽量完整的介绍。(对于OIer可能不太实用) 课件链接: https://files.cnblogs.com/files/turboboost/slides.pdf.zip 目录截图: ...
分类:
编程语言 时间:
2021-04-09 13:08:36
阅读次数:
0
https://blog.csdn.net/u013939918/article/details/60882806 https://www.doc88.com/p-2788108743808.html ...
分类:
其他好文 时间:
2021-04-09 13:07:15
阅读次数:
0
ubutnu 20.04 Pycham突然卡住的问题解决办法 找到sogou输入法进程 ps -ef | grep sogou bob 1682 899 0 4月07 ? 00:01:05 /opt/sogoupinyin/files/bin/sogoupinyinService-watchdog ...
分类:
其他好文 时间:
2021-04-09 13:05:36
阅读次数:
0