摘要: 额,写的有点混乱,改天整理一下 链接:https://hihocoder.com/problemset/problem/1403 1 //字符串从1开始 2 //rank[i]为字符串中i位置起的后缀排序后的顺序 3 //sa[i]为排序后的第i位置对应的后缀在字符串中的起始位置 4 //sa[ra 阅读全文
posted @ 2016-10-27 11:49 西小贝 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 题意: 给定非排序数组,找出其排序后相邻元素的最大差值。 线性时间空间、元素数少于2时返回0、元素值非负且int范围内。 思路: 排序最快nlogn不符合要求; 参考网上,学习了桶排序的方法; 桶排序:按值分段处理; 设定桶大小和桶个数; 因为ans>=(MAX-MIN)/(len-1); 桶大小: 阅读全文
posted @ 2016-10-20 21:51 西小贝 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1、Team Viewer; 2、 阅读全文
posted @ 2016-09-30 21:17 西小贝 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1、lost shadow 阅读全文
posted @ 2016-09-30 21:16 西小贝 阅读(83) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-09-29 23:13 西小贝 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 编辑器:TeXworks TeX发行:TeX Live 一、安装TeX Live 1、https://www.tug.org/texlive/acquire-netinstall.html下载install-tl-windows.exe; 2、运行install-tl-windows.exe,选择第 阅读全文
posted @ 2016-09-27 23:56 西小贝 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 1、安装插件: ctrl+shift+p、install package、插件名称 2、直接运行python文件: ctrl+B 3、sublime text安装python:(链接:https://www.zhihu.com/question/22904994/answer/87527103) 1 阅读全文
posted @ 2016-09-17 00:28 西小贝 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 1、IP地址、子网掩码、默认网关、DNS 2、Ubuntu配置静态IP 阅读全文
posted @ 2016-08-19 16:12 西小贝 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1、磁盘管理中,选择一块剩余空间较大的分区,压缩卷; (50G即可,压缩后出现50G的可用空间(绿色)(未分区磁盘),到此为止,不必新建卷) 2、官网下载ubuntu镜像; 3、用软碟通将镜像写入U盘; (进入、选择Ubuntu镜像、菜单栏启动-写入磁盘镜像、确认U盘、确认镜像文件、格式化、写入、完 阅读全文
posted @ 2016-08-19 14:24 西小贝 阅读(2189) 评论(0) 推荐(0) 编辑
摘要: You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you nee 阅读全文
posted @ 2016-08-17 21:09 西小贝 阅读(443) 评论(0) 推荐(0) 编辑