摘要: Description:Count the number of prime numbers less than a non-negative number,nclick to show more hints.Credits:Special thanks to@mithmattfor adding t... 阅读全文
posted @ 2015-04-28 21:21 xlturing 阅读(649) 评论(0) 推荐(0) 编辑
摘要: 快速排序,只要学习过编程的人肯定都听说过这个名词,但是有时候写的时候还真蒙住了,网上搜罗了下以及查阅了"introduction to algorithm",暂时找到两种实现快排的方式,记录如下:1.通过挖坑,分治的方式,需要左右交替遍历思想如下:代码实现: 1 public static ... 阅读全文
posted @ 2015-04-28 10:56 xlturing 阅读(1657) 评论(0) 推荐(0) 编辑