节点分为3种 元素节点,文本节点,属性节点 元素节点:div 属性节点:id=‘app’ 文本节点:里面的内容 document.getElementById('box').id //获取Id document.getElementById('box').id = 'person'; //设置id ...
分类:
其他好文 时间:
2019-08-19 19:37:09
阅读次数:
82
Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6, ...
分类:
其他好文 时间:
2019-08-19 09:37:19
阅读次数:
70
题目链接:https://leetcode cn.com/problems/remove linked list elements/ 题目描述: 删除链表中等于给定值 val 的所有节点。 示例: 思路: 迭代 递归 ...
分类:
其他好文 时间:
2019-08-17 22:00:51
阅读次数:
114
DICTIONARIES Similar to lists but use key instead of an index. LISTS List of values/elements, all can be stored in one variable. Improving the Program ...
分类:
编程语言 时间:
2019-08-17 01:02:33
阅读次数:
115
题目链接:https://leetcode-cn.com/problems/remove-linked-list-elements/ 删除链表中等于给定值 val 的所有节点。 示例: ...
分类:
其他好文 时间:
2019-08-16 22:50:31
阅读次数:
102
一、列表 1.任意对象的有序集合 列表是一组任意类型的值,按照一定顺序组合而成的 2.通过偏移读取 组成列表的值叫做元素(Elements)。每一个元素被标识一个索引,第一个索引是0,序列的功能都能实现 3.可变长度,异构以及任意嵌套 列表中的元素可以是任意类型,甚至是列表类型,也就是说列表可以嵌套 ...
分类:
编程语言 时间:
2019-08-14 14:18:53
阅读次数:
261
參考 1. "Remove empty array elements" 2. "Remove Empty Array Elements In PHP" ...
分类:
Web程序 时间:
2019-08-11 22:57:09
阅读次数:
159
Table of Contents Python Lists Lists Are Ordered Lists Can Contain Arbitrary Objects List Elements Can Be Accessed by Index Lists Can Be Nested Lists ...
分类:
其他好文 时间:
2019-08-11 00:21:04
阅读次数:
169
题意 给你 $n$ 个数,每次求出相邻两个数的和组成新数列。经过 $n 1$ 次操作后,得到一个数。求这个数 $mod \ m$ 与哪些项无关。 如:当 $m=2 \ , \ n=2$ 时 $a_1 \ , \ a_2 , a_3 \Rightarrow a_1+a_2 \ , \ a_2+a_3 ...
分类:
其他好文 时间:
2019-08-10 17:11:10
阅读次数:
62
Given a fixed length array arr of integers, duplicate each occurrence of zero, shifting the remaining elements to the right. Note that elements beyond ...
分类:
其他好文 时间:
2019-08-10 10:08:31
阅读次数:
95