Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?使用快慢指针,如果有循环两指针必定能相遇: 1 p...
分类:
编程语言 时间:
2014-10-08 04:32:34
阅读次数:
298
1、Set Up a Recovery Catalog and Target DatabaseSetting up a recovery catalog is a very simple process. This can be done through the Enterprise Manager...
分类:
数据库 时间:
2014-10-08 02:35:54
阅读次数:
389
最简单的排序算法——冒泡排序: 1 void bubble_sort(int *arr, int len) 2 { 3 int up, down; 4 for(up = 0; up != len; ++ up) 5 { 6 for(down = 0; down != ...
分类:
其他好文 时间:
2014-10-07 23:58:24
阅读次数:
339
HTML(HyperText Mark-up Language)即超文本标记语言(标准通用标记语言下的一个应用)或超文本链接标示语言,是目前网络上应用最为广泛的语言,也是构成网页文档的主要语言。HTML文件是由HTML命令组成的描述性文本,HTML命令可以说明文字、图形、动画、声音、表格、链接等。H...
分类:
Web程序 时间:
2014-10-07 21:31:14
阅读次数:
182
题目: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up: Could you do this in-place? 分析: 二维数...
分类:
其他好文 时间:
2014-10-07 16:44:13
阅读次数:
311
Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you use extra space?A s...
分类:
其他好文 时间:
2014-10-07 12:03:03
阅读次数:
231
HDU 3103 Shoring Up the Levees(计算几何 求面积)...
分类:
其他好文 时间:
2014-10-06 23:08:01
阅读次数:
496
Now that we have Card objects, the next step is to define a class to represent decks. Since a deck is made up cards, a natural choice is for each Deck...
分类:
其他好文 时间:
2014-10-06 17:49:50
阅读次数:
197
Introduction Ethernet 是过去30年以来最为成功的局域网(local area networking)技术。 1. First widely used LAN technology (第一次被广泛使用的局域网技术) 2. kept up with speed race: 10 M...
分类:
Web程序 时间:
2014-10-06 12:29:20
阅读次数:
515
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below binary tree and sum ...
分类:
其他好文 时间:
2014-10-06 01:23:59
阅读次数:
228