题目:移除linked-list从尾到头的第N个元素自我思路:因为题目给出的N是从链表尾开始计算的,单链表不存在从子指向父亲的反向指针,因此我先计算链表的整个长度len,然后用len
- N来表示正向被删除元素所在的位置。代码:public ListNode removeNthFromEnd(Lis...
分类:
其他好文 时间:
2014-05-19 20:54:33
阅读次数:
378
The linear screen is a new kind of high
efficiency screening equipment which vibrates with a vibration motor. Our
company has introduced technology fr...
分类:
其他好文 时间:
2014-05-19 10:36:28
阅读次数:
282
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
Query OK, 24918 rows affected (0.90 sec)Records:
24918 Duplicates: 0 Warnings: 0Query OK, 24923 rows affected (2.26 sec)Records:
24923 Duplicates: 0 W...
分类:
数据库 时间:
2014-05-18 19:21:18
阅读次数:
272
【题目】
Given an array and a value, remove all instances of that value in place and return the new length.
The order of elements can be changed. It doesn't matter what you leave beyond the new length.
【题意】
删除数组中指定的值。不关心在新数组的后面即数组尾部留下了什么值。
【思路】
思路同Remo...
分类:
其他好文 时间:
2014-05-18 14:53:56
阅读次数:
208
首先我描述一下问题:当我从一个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
1.精简Tomcat和配置文件
1.删除不需要的管理应用和帮助应用,提高tomcat安全性。
# 删除webapps下所有文件
# rm –fr $CATALINA_HOME/webapps/*
# 删除server/wenapps下所有文件
# rm –fr $CATALINA_HOME/server/webapps/*
2.精简sever...
分类:
其他好文 时间:
2014-05-18 06:30:41
阅读次数:
360
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
使用高德地图API需要申请一个开发者ID号以及我所用的相关资源:
http://pan.baidu.com/disk/home?fr=ibaidu
该文件夹中有一个官方文档,AMap_IOS_API_Guid,提供了使用方法供开发者参阅。
最近在做cppunit
test相关工作,用gcov和lcov工具来查看每行代码的覆盖率,个人感觉lcov真棒,看起来很舒服,点起来也很爽!~~闲聊至此,如题:我使用的是lcov的
--remove命令Remove / filter out remaining unwanted stuff from...
分类:
移动开发 时间:
2014-05-17 18:11:48
阅读次数:
505