上一页 1 ··· 261 262 263 264 265 266 267 268 269 ··· 273 下一页
摘要: 问题:js文件须严格保证加载顺序(比如上例的1.js要在2.js的前面),依赖性最大的模块一定要放到最后加载,当依赖关系很复杂的时候,代码的编写和维护都会变得困难! C语言中模块开发-include requireJS库——借鉴类似C中模块依赖解决方式(include) 假定主模块依赖jquery、 阅读全文
posted @ 2016-12-19 14:25 bonelee 阅读(227) 评论(0) 推荐(0)
摘要: Given a non-empty string containing an out-of-order English representation of digits 0-9, output the digits in ascending order. Note: Example 1: Examp 阅读全文
posted @ 2016-12-18 22:37 bonelee 阅读(424) 评论(0) 推荐(0)
摘要: Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note: You may assume k is always valid, 1 ≤ k ≤ BST's 阅读全文
posted @ 2016-12-18 20:58 bonelee 阅读(172) 评论(0) 推荐(0)
摘要: There are a number of spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of the hor 阅读全文
posted @ 2016-12-18 20:01 bonelee 阅读(325) 评论(0) 推荐(0)
摘要: There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every 阅读全文
posted @ 2016-12-18 18:14 bonelee 阅读(255) 评论(0) 推荐(0)
摘要: Given a set of intervals, for each of the interval i, check if there exists an interval j whose start point is bigger than or equal to the end point o 阅读全文
posted @ 2016-12-18 17:08 bonelee 阅读(312) 评论(0) 推荐(0)
摘要: Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assum 阅读全文
posted @ 2016-12-17 23:59 bonelee 阅读(358) 评论(0) 推荐(0)
摘要: 转自:http://cek.io/blog/2015/12/03/event-loop/ What is JavaScript What is JavaScript anyway? Some words: It’s a single-threaded, non-blocking, asynchron 阅读全文
posted @ 2016-12-16 12:14 bonelee 阅读(406) 评论(0) 推荐(0)
摘要: 什么是事件循环 什么是事件循环 Node只运行在一个单一线程上,至少从Node.js开发者的角度是这样的。在底层, Node是通过libuv来实现多线程的。 Libuv库负责Node API的执行。它将不同的任务分配给不同的线程,形成一个事件循环, 以异步的方式将任务的执行结果返回给V8引擎。可以简 阅读全文
posted @ 2016-12-16 10:57 bonelee 阅读(276) 评论(0) 推荐(0)
摘要: 第3章 The Bourne-Again Shell Bash的主要组件:输入处理,解析,单词展开(word expansion)和其他命令处理,管道(pipeline)中的命令执行。这些组件构成一个流水线(pipeline),从键盘或脚本中获取字符,然后逐步转化为命令。 图3.1 Bash组件结构 阅读全文
posted @ 2016-12-15 20:28 bonelee 阅读(892) 评论(0) 推荐(0)
上一页 1 ··· 261 262 263 264 265 266 267 268 269 ··· 273 下一页