tan-chao的博客
tan-chao · 共 4 篇文章
Write a code to merge N sorted array
N ERRORN = 1: A1N = 2: merge A1 & A2; { N > 2: merge A1 & A2 -> A12; merge A12 & A3 -> A13; ... merge A1(N-1) & AN. } recursive way is simple for thinking. but this will loop for N-1 times, and the remove operations will cost a lot of waste. another thinking about {} part: while (N>1): getMaxTail(A…
2012-11-27T00:26:22Z · 编程语言 · 评论(0)
JS-2
JS还是有些奇怪的东西的 也不知道怎么去看源码 才能知道这奇怪的来源 isNaN(5/0); // false isNaN(0/0); // true 5/0; // infinity 0.1 + 0.2; // 0.30000000000000004 Math.round((0.1+0.2)*100)/100; // 0.3 JS的Object是基于key-value的map机制实现的,并且往往是string-object的搭配 JS可以用Object作为key,但是也是转换为object.toString来判断key值 var obj = {}; var otherObj = { nam…
2012-02-29T12:35:43Z · Web前端 · 评论(0)
JS-1
在线学习网站非常cool 能够满足自我挑战的感觉 资料也是最新的 很喜欢 JS中唯一不是true的东东都在这儿了:( function sad(value) { // If a value is falsy, return the string ':('. // Otherwise, don't return anything. if(!value) { return ':('; } return; } console.log(sad(undefined)); console.log(sad(false)); console.log(sad("")); console.log(sad(0))…
2012-02-28T22:30:04Z · Web前端 · 评论(0)
Blue Print
做事情一定要有规划 恩 比计划高级一点点 接下来比较重要的是VMWARE和JPMC的机会 准备的方向也大致朝着这方面走 JPMC我觉得关键在于online test一定要把SCJP的题目操练个几遍 VMWARE说白了就是要把自己听上去很美的story完善起来 经得起推敲 1.打印的几分资料全部搞定 2.Hadoop了解 3.所有SCJP的材料都做完 exe文件好好使用 4.heruko上的个人rails应用搭起来 5.回顾下数据库的技术体系和技巧 6.tuning system和database,performance的衡量标准和工具,测试方法 7.继续编story争取CV上每句话背后都有1…
2012-01-19T00:47:09Z · 非技术 · 评论(0)