http://acm.hdu.edu.cn/showproblem.php?pid=3534
Problem Description
In the Data structure class of HEU, the teacher asks one problem: How to find the longest path of one tree and the number...
分类:
其他好文 时间:
2015-02-14 18:56:57
阅读次数:
190
首先需要说明的是这个驱动是基于LPC17XX 的芯片。很多代码会涉及到lpc17xx mac寄存器的操作。
驱动文件名:LPC18xx_43xx_emac.c
先看下结构体lpc_enetdata_t信息:
/* LPC EMAC driver data structure*/
typedef struct {
/* prxs must be 8 bytealigned! ...
分类:
其他好文 时间:
2015-02-14 12:22:50
阅读次数:
676
出处:http://www.infoq.com/cn/articles/cloud-structure-thinking最近在负责公司内部私有云的建设,一直在思考怎么搞云计算,怎么才能够把云架构设计得好一些。本文尽量全面的列出了云架构建设和选型的考量因素。我们主要从五个层面逐步评估云架构的建设和选型...
分类:
其他好文 时间:
2015-02-13 13:06:58
阅读次数:
198
接下来进行打包,使用Project ?Structure的Artifacts: 使用From modules with dependencies: 选择Main Class: 点击“OK”: 把名称改为SparkDemoJar: 因为每台机器上都安装了Scala和Spark,所以可以把Scala和...
接下来进行打包,使用Project Structure的Artifacts:
使用From modules with dependencies:
选择Main Class:
点击“OK”:
把名称改为SparkDemoJar:
因为每台机器上都安装了Scala和Spark,所以可以把Scala和Spark相关的jar文...
SET FOREIGN_KEY_CHECKS=0;-- ------------------------------ Table structure for t_system_authority_info-- ----------------------------DROP TABLE IF EXI...
分类:
数据库 时间:
2015-02-11 16:15:43
阅读次数:
157
Design and implement a TwoSum class. It should support the following operations:addandfind.add- Add the number to an internal data structure.find- Fin...
分类:
其他好文 时间:
2015-02-10 15:17:36
阅读次数:
235
Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space is ...
分类:
其他好文 时间:
2015-02-09 14:04:10
阅读次数:
148
就是用STL来模拟就行了,但是我有一个地方没注意坑了好几次:访问STL封装好的数据结构中的元素之前先判断容器是不是为空,否则会Runtime Error。#include#include#include#include#include#include#include#include#include#...
分类:
其他好文 时间:
2015-02-08 11:26:40
阅读次数:
164
Is It A Tree?
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 23255
Accepted: 7977
Description
A tree is a well-known data structure that is either empty (...
分类:
其他好文 时间:
2015-02-07 11:50:01
阅读次数:
232