Maximum Product SubarrayTitle:Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example,...
分类:
其他好文 时间:
2015-05-29 13:37:55
阅读次数:
98
Maximum Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [?2,1,?3,4,?1,2,1,?5,4],
the contiguous ...
分类:
其他好文 时间:
2015-05-27 17:18:16
阅读次数:
103
Jump Game
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that positi...
分类:
其他好文 时间:
2015-05-27 15:47:44
阅读次数:
139
TCP协议以可靠性出名,这其中包括三次握手建立连接,流控制和拥塞控制等技术。我写的这个系统基于UDP协议模拟了一个TCP协议,所实现的功能如下:1.三次握手2.一个计时器,用来判断传输超时行为3.快速重传4.能处理不同的MSS(maximum segment size)5.没有被接收方确认收到的包会...
分类:
其他好文 时间:
2015-05-27 11:37:37
阅读次数:
354
/*
* @implemented
来看一下跟中断对象有关的两个对象:
typedef struct _IO_INTERRUPT
{
KINTERRUPT FirstInterrupt;
PKINTERRUPT Interrupt[MAXIMUM_PROCESSORS];
KSPIN_LOCK SpinLock;
} IO_INTERRUPT, *PIO_INTERR...
分类:
其他好文 时间:
2015-05-27 10:24:14
阅读次数:
263
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?2,1,?3,4,?1,2,1,...
分类:
其他好文 时间:
2015-05-27 08:37:27
阅读次数:
126
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree. For example:Given the below binary tree, 1 ...
分类:
编程语言 时间:
2015-05-26 18:40:02
阅读次数:
157
Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complet...
分类:
编程语言 时间:
2015-05-26 17:59:30
阅读次数:
176
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" hr...
分类:
Web程序 时间:
2015-05-26 16:39:35
阅读次数:
286
Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complet...
分类:
编程语言 时间:
2015-05-26 15:42:45
阅读次数:
157