08 2016 档案

摘要:JavaScript的三个不同的组成部分: (1)ECMAScript,提供核心语言功能,所有浏览器大体上都支持ECMA第三版 (2)文本对象模型(DOM),提供访问和操作网页内容的方法和接口 (3)浏览器对象模型(BOM),提供与浏览器交互的方法和接口 <script> 元素,6种。其中type也 阅读全文
posted @ 2016-08-21 22:37 sunalive 阅读(140) 评论(0) 推荐(0)
摘要:Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2]. 别人的思路 我还是太菜了! 阅读全文
posted @ 2016-08-21 21:21 sunalive 阅读(141) 评论(0) 推荐(0)
摘要:Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example:Given a = 1 and b = 2, return 3. 一般步骤: 1、计算不用进 阅读全文
posted @ 2016-08-20 13:05 sunalive 阅读(94) 评论(0) 推荐(0)
摘要:You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 ston 阅读全文
posted @ 2016-08-20 11:32 sunalive 阅读(178) 评论(0) 推荐(0)
摘要:Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". Subscribe to see which compa 阅读全文
posted @ 2016-08-10 21:52 sunalive 阅读(150) 评论(0) 推荐(0)