Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your algor...
分类:
其他好文 时间:
2015-05-14 08:36:05
阅读次数:
88
Follow up for "Remove Duplicates": What if duplicates are allowed at most twice?
For example,
Given sorted array nums = [1,1,1,2,2,3],
Your function should return length = 5, with the first five el...
分类:
其他好文 时间:
2015-05-13 23:18:20
阅读次数:
331
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without using extra...
分类:
其他好文 时间:
2015-05-13 22:01:30
阅读次数:
138
The method to do the map match1 The algorithm proceduresFirst ,we should find the most nearest road to the point from all roads in haerbin;Second, we ...
分类:
数据库 时间:
2015-05-13 21:17:38
阅读次数:
164
原文网址:http://www.oschina.net/translate/10-virtualbox-tricks-and-advanced-features-you-should-know-aboutVirtualBox集成的许多功能你可能从来没有使用过,即使你经常用它来运行虚拟机。VMware...
分类:
其他好文 时间:
2015-05-13 16:07:09
阅读次数:
121
Merge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.
C实现/**
* Definition for singly-linke...
分类:
其他好文 时间:
2015-05-13 12:57:04
阅读次数:
122
Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity. 1 class Solution { 2 publ...
分类:
其他好文 时间:
2015-05-13 08:45:27
阅读次数:
134
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.经典实现题。/**...
分类:
其他好文 时间:
2015-05-13 08:42:20
阅读次数:
97
Single Number
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you imple...
分类:
其他好文 时间:
2015-05-12 23:10:19
阅读次数:
160
不知道其他软件有没有类似的指导原则。Theory of UpgradeGrenade works under the following theory of upgrade.New code should work with old configs(新代码兼容旧的配置)The upgrade pro...
分类:
其他好文 时间:
2015-05-12 22:58:53
阅读次数:
155