liar.pangwa.com
Overskill... | 每天灌水一点点
The Beauty of Programming] Find the Kth biggest number within list of N numbers. Again it’s been a while after previous post…. O(nlogn) – Sort. Sort the list, and retrieve the nth one. O(n*k) – Partial Sort. There can be multiple ways to do partial sort, one of them being selective sort: loop the list – first cycle get the biggest one; second cycle get the second one etc. till the Kth cycle. On each cycle we can move the number to the front, so that l[0:K] is sorted after Kth cycle. O(n) – bitvec. For up...
cindy.pangwa.com
Welcome to nginx!
If you see this page, the nginx web server is successfully installed and working. Further configuration is required. For online documentation and support please refer to nginx.org. Commercial support is available at nginx.com. Thank you for using nginx.
sophie.pangwa.com
Welcome to nginx!
If you see this page, the nginx web server is successfully installed and working. Further configuration is required. For online documentation and support please refer to nginx.org. Commercial support is available at nginx.com. Thank you for using nginx.
blog.pangwa.com
pangwa's Blog
Kid Programming Privacy policy. March 2nd, 2015. 8216;How time flies! 8217; – 难得中学学了这么有用的一句话. 另 js写得多了, 连字符串都习惯用单引号了. 时间过的真快, 一年时间就这么过去了, 工作如果算上实习的话马上就要满十年(眼泪…). 买了第一辆车 – 迫于老婆大人的要求, 不过事实证明有车还是方便生活不少. 终于拿到了驾照, 上海学驾照太麻烦了, 找了个上海学外地考的, 就别提多坑了…. 终于还清了大多数的私人债务, md, 终于要开始积累财富了(虽然很少…). 有娃之后的私人时间少了好多, 不过以前时间多的时候也没干啥正事, 游戏打的太多. 貌似现在过了游戏的年纪了, 重新下载过LOL, WOW, 结果都没玩了多久就玩不动了, 一是时间不多, 二是没有什么游戏的激情, 很难再找回几年前天天上班似的打Raid的感觉了. 另外感觉自己进步的一点是终于意识到每个人都有自己犀利的地方, 而以前看事物太过片面, 羞愧啊. June 2nd, 2014. 2013年: 有娃了, 天天都有了要忙碌的对象. 这些项目确实实现了一...