这是我在Coursera上的学习笔记。课程名称为《Computer Networks》,出自University of Washington。
由于计算机网络才诞生不久,目前正在以高速在发展,所以有些旧的教材可能都已经跟不上时代了。这门课程在2013年左右录制,知识相对还是比较新的。覆盖了计算机网络中的各个协议层,从物理层到应用层都讲得非常仔细。学完这门课程之后对计算机网络会有比较深刻的了解...
分类:
其他 时间:
2014-05-22 08:36:40
收藏:
0 评论:
0 赞:
0 阅读:
417
数据结构-线性表(2)...
分类:
其他 时间:
2014-05-22 13:13:27
收藏:
0 评论:
0 赞:
0 阅读:
379
D. Number theory
Time Limit: 1000ms
Case Time Limit: 1000ms
Memory Limit: 65536KB
64-bit integer IO format: %lld Java class name: Main
Submit Status PID:
34055
Font Size:
+
...
分类:
其他 时间:
2014-05-20 16:23:36
收藏:
0 评论:
0 赞:
0 阅读:
383
uva 548 Tree
题目大意:
给定一个二叉树的中序和后序遍历,求二叉树到每个叶节点的路径和最小的那个叶节点的值。
解题思路:
先建树,后dfs,建树也就是后序的最后一个就是二叉树的当前节点的值,再在中序中找到这个值,那么左边就是左子树,右边就是又子树,再从后序中找出相应的左右子树的后序,然后划分为子问题递归求解。...
分类:
其他 时间:
2014-05-23 08:09:59
收藏:
0 评论:
0 赞:
0 阅读:
325
这是我在Coursera上的学习笔记。课程名称为《Computer Networks》,出自University of Washington。
由于计算机网络才诞生不久,目前正在以高速在发展,所以有些旧的教材可能都已经跟不上时代了。这门课程在2013年左右录制,知识相对还是比较新的。覆盖了计算机网络中的各个协议层,从物理层到应用层都讲得非常仔细。学完这门课程之后对计算机网络会有比较深刻的了解...
分类:
其他 时间:
2014-05-22 07:19:11
收藏:
0 评论:
0 赞:
0 阅读:
336
#include
using namespace std;
class Date
{
public:
Date(int y=0,int m=0,int d=0);
void SetDate(int y,int m,int d);
void PrintDate();
protected:
int year;
int month;
int day;
}...
分类:
其他 时间:
2014-05-22 08:35:59
收藏:
0 评论:
0 赞:
0 阅读:
445
蓝桥杯 历届试题 高效解法 地宫取宝...
分类:
其他 时间:
2014-05-22 11:34:48
收藏:
0 评论:
0 赞:
0 阅读:
918
??
A Stack or A Queue?
Time Limit:
1 Second Memory Limit: 32768 KB
Do you know stack and queue? They're both important data structures. A stack is a "first in last out" (FILO) data ...
分类:
其他 时间:
2014-05-22 12:24:19
收藏:
0 评论:
0 赞:
0 阅读:
733
#define max(x,y) ({ typeof(x) _x = (x); typeof(y) _y = (y); (void) (&_x == &_y); _x > _y ? _x : _y; })
typeof(x)的意思是取x的类型,这不是标准C里的,gcc支持,vc不支持
(void) (&_x == &_y);这句话本身从执行程序来讲...
分类:
其他 时间:
2014-05-20 14:57:40
收藏:
0 评论:
0 赞:
0 阅读:
325
题目总结:
1.若没有进行旋转,或者说旋转后的效果跟没有旋转是一样的,那么index1指示的值小于index2指示的值,返回index1的值。
2.若是一般性的旋转,那么最小的值旋转后肯定在中间,那么我们就可以从两边向中间夹逼。
3.夹逼的过程中,若 [ index1, middle ] 是有序的,说明这部分子区间没被破坏,旋转所移动的元素都在middle 的后面,那么最小值可定也在后面的部...
分类:
其他 时间:
2014-05-22 13:42:22
收藏:
0 评论:
0 赞:
0 阅读:
409
HDU 3910 Liang Guo Sha
题目大意:
If both of them choose “Sha”, then Alice gets A points, and Bob loses A points; if both of them choose “Shan”, then Alice gets B points, and Bob loses B points; otherwise, Bob gets C points, and Alice loses C points.
给定A B ...
分类:
其他 时间:
2014-05-22 06:22:20
收藏:
0 评论:
0 赞:
0 阅读:
410
之前做了个有源蜂鸣器的提示音,这次无源蜂鸣器到货了,先来个警报声测试一下,下一步开始无源蜂鸣器的音乐播放之路,期待吧,骚年!...
分类:
其他 时间:
2014-05-22 10:56:32
收藏:
0 评论:
0 赞:
0 阅读:
658
关于UIActionSheet,我们经常用到的就是
UIActionSheet *actionSheet = [[UIActionSheet
alloc]initWithTitle:@"请选择"
delegate:self
cancelButtonTitle:@"取消"destructiveButtonTitle:@"确定"
otherButtonTitles:@"1",@"2",@...
分类:
其他 时间:
2014-05-22 09:51:05
收藏:
0 评论:
0 赞:
0 阅读:
474
Remove Nth Node From End of List删除链表倒数的第N个元素...
分类:
其他 时间:
2014-05-22 11:15:31
收藏:
0 评论:
0 赞:
0 阅读:
296
题目链接:
点击打开链接
题目为:
免费馅饼
都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不掉,就掉落在他身旁的10米范围内。馅饼如果掉...
分类:
其他 时间:
2014-05-22 06:57:19
收藏:
0 评论:
0 赞:
0 阅读:
407
笔记本换成XP系统后,打开风行的时候,回报下面的错误:
---------------------------
Msg: FunshionWeb.exe - 无法找到入口
---------------------------
无法定位程序输入点 CreateUri 于动态链接库 urlmon.dll 上。
---------------------------
确定
---------...
分类:
其他 时间:
2014-05-23 07:47:54
收藏:
0 评论:
0 赞:
0 阅读:
399
斐波那契数列高效递归求法...
分类:
其他 时间:
2014-05-23 07:47:10
收藏:
0 评论:
0 赞:
0 阅读:
394
p Me Escape
Time Limit: 2 Seconds Memory Limit: 32768 KB
Background
If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto th...
分类:
其他 时间:
2014-05-22 12:50:06
收藏:
0 评论:
0 赞:
0 阅读:
348
Problem Description
Alice and Bob always love to play games, so does this time.
It is their favorite stone-taken game.
However, this time they does not compete but co-operate to finish this tas...
分类:
其他 时间:
2014-05-22 11:14:46
收藏:
0 评论:
0 赞:
0 阅读:
435
EventMachine
本文主要是
EventMachine如何建一个简单的Echo服务器post_init, unbind, receive_date 方法
EchoServer
如下代码,是建立一个简单的EchoServer
#!/usr/bin/env rubyrequire 'rubygems'require 'eventmachine' class Ech...
分类:
其他 时间:
2014-05-22 11:14:03
收藏:
0 评论:
0 赞:
0 阅读:
430