Archive for the ‘设计’ Category

应该认真看,逐条看,反复看 产品设计与用户体验(马化腾) View more presentations from ericblue.

来源: http://lifesinger.org/blog/2009/09/javascript-quick-combine/ Posted on September 25th, 2009 in 前端开发 by lifesinger /**  * 快速组合算法  * 从 n 中任选 m(0 < m <= n) 个数的所有组合  */ function quick_combine(n, m) {     var t = ((1 << n) – (1 << n – m)).toString(2),         r = [], s, p1, p2;     while((r.push(t), p1 = t.indexOf(“10”)) >= 0) {         s  = t.slice(0, p1);         p2 = s.indexOf(“1”); […]