1、DOM中的所有节点都继承自Node类型,IE9之前将DOM节点作为COM对象来实现;每个DOM节点都有一个nodeType属性来表明节点类型,总共有12个类型:
1 Node.ELEMENT_NODE 2 Node.ATTRIBUTE_NODE 3 Node.TEXT_NODE 4 Node.C...
分类:
其他好文 时间:
2014-05-20 00:53:25
阅读次数:
297
题目:移除linked-list从尾到头的第N个元素自我思路:因为题目给出的N是从链表尾开始计算的,单链表不存在从子指向父亲的反向指针,因此我先计算链表的整个长度len,然后用len
- N来表示正向被删除元素所在的位置。代码:public ListNode removeNthFromEnd(Lis...
分类:
其他好文 时间:
2014-05-19 20:54:33
阅读次数:
378
Given a linked list, remove the nth node from
the end of list and return its head.For example,Given linked list:
1->2->3->4->5, and n = 2.After removi...
分类:
其他好文 时间:
2014-05-19 09:16:49
阅读次数:
247
Given an array of non-negative integers, you
are initially positioned at the first index of the array.Each element in the
array represents your maximu...
分类:
其他好文 时间:
2014-05-19 08:23:07
阅读次数:
223
Given an array of non-negative integers, you
are initially positioned at the first index of the array.Each element in the
array represents your maximu...
分类:
其他好文 时间:
2014-05-19 08:07:26
阅读次数:
288
Working with SubscriptionsApps that use
subscriptions have some additional behaviors and considerations. Because
subscriptions incorporate an element ...
分类:
移动开发 时间:
2014-05-18 19:49:05
阅读次数:
548
首先我描述一下问题:当我从一个view到另外一个view的时候?
解答:这个问题的解决还需要看setAnimationTransition:forView:cache: 官方Api,官方是这样说的:
1.Begin an animation block.
2.Set the transition on the container view.
3.Remove the subview fro...
分类:
其他好文 时间:
2014-05-18 10:44:03
阅读次数:
370
Remove Duplicates from Sorted List IGiven a
sorted linked list, delete all duplicates such that each element appear only
once.For example,Given 1->1->...
分类:
其他好文 时间:
2014-05-18 01:41:31
阅读次数:
361
上午解决了一个问题是xml的解析,Ws接口返回值只有结点没有属性,所以开始调用Element的获取属性值方法总失败,后来突然想到结点没有属性的,我只是想去下级结点的值,然后调用了valueOf()传入指定的结点名称后成功。下午解决了Ws调用返回值处理问题,由于对方提供的Ws接口需要传入服务及参数名和...
分类:
其他好文 时间:
2014-05-17 22:01:55
阅读次数:
329
最近在做cppunit
test相关工作,用gcov和lcov工具来查看每行代码的覆盖率,个人感觉lcov真棒,看起来很舒服,点起来也很爽!~~闲聊至此,如题:我使用的是lcov的
--remove命令Remove / filter out remaining unwanted stuff from...
分类:
移动开发 时间:
2014-05-17 18:11:48
阅读次数:
505