Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit is at the head of the list.
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.
Note: You may assume that nums1 has enough space (size that is greater or equal to m + n) to hold additional elements from nums2. The number of elements initialized in nums1 and nums2 are m and n respectively.
6.存取函数 -查找元素 indexOf(),若目标数组包含该参数,则返回第一个参数的索引;若不存在,则返回-1; var position = arr.indexOf(hello); -lastIndexOf()返回最后一个参数的索引; -join() 可以将数组转化为字符串 var str =arr.join(); -toString() 可以将数组转化为字符串 var str = arr.toString(); -concat() 合并数组 var newArr =arr2.concat(arr1); -splice() 截取数组 var newArr =arr.splice(3,3) //第一个参数是起始索引,第二个参数是截取的长度