摘要: 模块初始化 一个模块中的JS代码仅在模块第一次被使用时执行一次,并在执行过程中初始化模块的导出对象。之后,缓存起来的导出对象被重复利用。 主模块 通过命令行参数传递给NodeJS以启动程序的模块被称为主模块。主模块负责调度组成整个程序的其它模块完成工作。例如通过以下命令启动程序时,main.js就是 阅读全文
posted @ 2018-09-15 21:57 aclihui 阅读(1738) 评论(0) 推荐(0) 编辑
摘要: 原文链接 " https://www.aclihui.com/leetcode 35 search insert position/" Given a sorted array and a target value, return the index if the target is found. 阅读全文
posted @ 2018-08-19 21:15 aclihui 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 原文地址 " https://www.aclihui.com/leetcode 9 palindrome number/" 9. Palindrome Number Determine whether an integer is a palindrome. An integer is a palin 阅读全文
posted @ 2018-08-19 20:30 aclihui 阅读(96) 评论(0) 推荐(0) 编辑
摘要: LeetCode 7 Reverse Integer Given a 32 bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: 123 Output 阅读全文
posted @ 2018-08-17 22:37 aclihui 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 题目 Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have 阅读全文
posted @ 2018-08-16 23:41 aclihui 阅读(131) 评论(0) 推荐(0) 编辑