public static void GetHead(string url) { var http = (HttpWebRequest)WebRequest.Create(url); http.Method = "HEAD";/...
分类:
Web程序 时间:
2014-11-18 23:22:22
阅读次数:
195
A1 10.1号,祖国生日时候,我开始痛下决心决心以后搞软件,一副苦大仇深的样子,想把《Head first C#》看完。期间挫折丛丛,最大的错误在于想把这本书快速看完,忽视了效率 ,终于快看完了,才知道没有做笔记,理解不透彻,有的地方甚至模糊。明白:好的学习方法是最大的效率。急于求进度,往往导致,...
【算法思路】时间复杂度限制在O(n log n),我们可以第一时间想到常用的二路归并排序,快速排序和堆排序,其中快排和堆排只适用于线性表,即数组,故这道编程题毫无疑问用二路归并排序;
【编程步骤】
* 1. 利用一个小技巧,可以设置慢行指针low和快行指针fast,把链表分成两部分来操作,即first和second链表
* 2. 递归排序first和second链表,即
first=sortList(head);
second=sortList(second);
* 3. 合并这两个链表,即:...
分类:
其他好文 时间:
2014-11-18 10:23:15
阅读次数:
185
题目描述:
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 removing the second node from t...
分类:
其他好文 时间:
2014-11-18 10:18:38
阅读次数:
170
<!doctypehtml>
<html>
<head>
<metacharset="utf-8">
<metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/>
<title>首页</title>
<!--新Bootstrap核心CSS文件-->
<linkrel="stylesheet"href="../../../css..
分类:
Web程序 时间:
2014-11-18 01:44:32
阅读次数:
208
<!DOCTYPE HTML> <html> <head> <meta charset="UTF-8"> <title>Slider图片轮播</title> <style type="text/css"> *{margin:0;padding:0} ul,li{list-style:none} #slider{ position:relative;width:470px; heigh...
分类:
Web程序 时间:
2014-11-17 22:59:13
阅读次数:
483
Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re...
分类:
其他好文 时间:
2014-11-17 22:45:53
阅读次数:
164
javascript实现js脚本的的异步加载,和图片的异步加载稍有不同,script的异步加载需要借助dom,因此有了局限性 <html>
<head>
<meta?charset="utf-8"?/>
<title>Javascript</title>
<meta?http-equiv=...
分类:
编程语言 时间:
2014-11-17 21:24:50
阅读次数:
215
#include#include#include#include#include#define maxn 100005using namespace std;queue q;int step[maxn];int visit[maxn];int n,k;int head,next;int bfs(){...
分类:
其他好文 时间:
2014-11-17 15:33:46
阅读次数:
144
文档的头部描述了文档的各种属性和信息,包括文档的标题等。绝大多数文档头部包含的数据都不会真正作为内容显示给读者。下面这些标签可用在 head 部分: ... 标签:在和标签之间的文字内容是网页的标题信息,它会出现在浏览器的标题栏中。网页的title标签用于告诉用户...
分类:
其他好文 时间:
2014-11-17 15:33:10
阅读次数:
106