上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 34 下一页
摘要: 随机生成[0,n)中不重复的m个数。 1 class Random { 2 public: 3 Random(int n, int m):n(n), m(m) {} 4 void generate() { 5 srand(time(NULL)); 6 ... 阅读全文
posted @ 2014-06-05 15:43 linyx 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 花了半天把二分查找的几种都写了一遍。验证了一下。二分查找的正确编写的关键就是,确保循环的初始、循环不变式能够保证一致。 可以先从循环里面确定循环不变式,然后再推导初始条件,最后根据循环不变式的内容推导出结果。 1. 普通的二分查找 第一版本: 循环内部有三次比较,一般来说,相等的操作只需要判断一次, 阅读全文
posted @ 2014-06-05 13:58 linyx 阅读(214) 评论(0) 推荐(0) 编辑
摘要: Bubble sortBubble sort, sometimes incorrectly referred to as sinking sort, is a simple sorting algorithm that works by repeatedly stepping through the... 阅读全文
posted @ 2014-06-05 12:35 linyx 阅读(615) 评论(0) 推荐(0) 编辑
摘要: ARMARM架构,过去称作高级精简指令集机器(Advanced RISC Machine,更早称作:Acorn RISC Machine),是一个32位精简指令集reduced instruction set computing(RISC)处理器架构,其广泛地使用在许多嵌入式系统设计。由于节能的特点... 阅读全文
posted @ 2014-06-04 23:57 linyx 阅读(4003) 评论(0) 推荐(0) 编辑
摘要: 筛选时间原页面的发车时间太宽了,如果只想要16:30-19:20的票就没法选。我一般是这个时间段回去。chrome里面,右键->审查元素(发车时间那个下拉列表)->修改value->重新选一下下拉列表那个改动过的项。刷新时间F12->Console->输入autoSearchTime=500->回车... 阅读全文
posted @ 2014-06-04 22:54 linyx 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 有一些网站不允许文本选择,对于我这种伸手党实在是很不友好。当然像这类的功能,应该是用JS来控制。chrome的话,JS禁用可以在地址栏旁边的一个下拉列表那里选。 阅读全文
posted @ 2014-06-04 22:45 linyx 阅读(855) 评论(0) 推荐(0) 编辑
摘要: 英文履历(Resume)和中文履历表的格式上有什么不同呢?中文的履历表是一个表格,把该填的资料填进去就是了,在国外找工作用的英文履历,则是在一张白纸上,用你喜欢的表达方式、文字、格式,把你的优点和与众不同之处写上去,所以你之后能不能拿到面试机会,甚至于能不能得到这份工作,就取决于这小小的一张履历。那... 阅读全文
posted @ 2014-06-04 22:40 linyx 阅读(1754) 评论(0) 推荐(0) 编辑
摘要: 1. Take default loss function for grantedMany practitioners train and pick the best model using the default loss function (e.g., squared error). In pr... 阅读全文
posted @ 2014-06-04 13:41 linyx 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Cookies are arbitrary pieces of data chosen by the web server and sent to the browser. The browser returns them unchanged to the server, introducing a... 阅读全文
posted @ 2014-05-22 23:57 linyx 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 版本HTTP/1.0这是第一个在通讯中指定版本号的HTTP协议版本,至今仍被广泛采用,特别是在代理服务器中。HTTP/1.1当前版本。持久连接被默认采用,并能很好地配合代理服务器工作。还支持以管道方式在同时发送多个请求,以便降低线路负载,提高传输速度。HTTP/1.1相较于HTTP/1.0协议的区别... 阅读全文
posted @ 2014-05-22 22:42 linyx 阅读(341) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 34 下一页