LocalHost 127.0.0.1是一个保留地址,用于本地软件测试以及本地进程间通信,
也叫回环IP、回环地址、回送地址(loopback address)。无论什么程序,一旦使
用回环IP发送数据,协议软件立即返回,不进行任何网络传输。
Linux下发现如果ping自己的IP不通,则可使用如下指令打开本地回环IP:
ifconfig lo 127.0.0.1 up
打开后不...
分类:
其他好文 时间:
2015-06-23 17:53:13
阅读次数:
190
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?Hide TagsLinked ListTwo Pointers分析:经典的快慢指针...
分类:
其他好文 时间:
2015-06-23 17:44:18
阅读次数:
99
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?Hid...
分类:
其他好文 时间:
2015-06-23 17:39:41
阅读次数:
140
#includeusing namespace std;int zuida(int n,int a[],int *sm,int *mm);void main(){ int m,n,i,j,sm,mm,t2; int sum,max; int up[100],down[100],t[100]; int...
分类:
编程语言 时间:
2015-06-23 11:47:59
阅读次数:
89
文件上传类 Upload.class.phppath = $path; $this->n = $n; $this->ext = $ext; $this->length = $length; } public function up() { $ufs = $_FILES; if (count ( $u...
分类:
Web程序 时间:
2015-06-23 00:38:51
阅读次数:
350
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
For example:
Given binary tree {3,9,20,#,#,15,7},
...
分类:
其他好文 时间:
2015-06-22 11:14:13
阅读次数:
94
Set Matrix Zeroes
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.
Follow up:
Did you use extra space?
A s...
分类:
其他好文 时间:
2015-06-22 11:12:40
阅读次数:
113
Rotate Image
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢
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?...
分类:
其他好文 时间:
2015-06-22 11:11:54
阅读次数:
116
Description:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?Code: 1 bool hasCycle(ListNo.....
分类:
其他好文 时间:
2015-06-21 18:25:08
阅读次数:
116
Setting up Code First Migrations for Model Changes--为模型更改做数据库迁移。1.打开资源管理器,在App_Data文件夹下,找到movies.mdf数据库文件,如果没有看到点击显示所有文件。2.删掉movies.mdf数据库文件,并编译项目。确保没...
分类:
数据库 时间:
2015-06-21 14:23:55
阅读次数:
194