手写邻接表很麻烦。。。。所以写了一个邻接表模板,方便用vector实现,使用时看看代码注释即可#include #include #include #include #define INF 99999999;#define max_point 1000000 ////定义总共的节点数目 using ...
分类:
其他好文 时间:
2014-09-24 21:39:57
阅读次数:
199
题目:
Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set to NULL.
Initially, all next pointers are set to NULL.
You may...
分类:
其他好文 时间:
2014-09-24 21:04:58
阅读次数:
188
-----QUESTION-----
Given n non-negative integers a1, a2,..., an,where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai)and (i,0). Find two lines, which together with x-axis forms ...
分类:
其他好文 时间:
2014-09-24 20:39:27
阅读次数:
218
1. 初始化spi端口和spi结构体 配置CS(输出)MISO(AF_PP)MOSI(AF_PP或者IN_FLOATING)CLK(AF_PP)这几根引脚注意:开发板上的SD卡和W25X16共用SPI1又因为SPI总线没有仲裁所以要把不用的SPI设备的CS拉高2.SPI_InitTypeDef SP...
分类:
其他好文 时间:
2014-09-24 19:33:27
阅读次数:
254
apn攻略:
1,百度apn概念:
2:代码相关位置
3:相关url
4:apn type 值:
5:一个完整版的apn配置参数
spn攻略:
1,百度spn概念:
2:代码相关位置
3,虚拟运营商
4:ps下,之前虚拟运营商apn不能正确匹配
5:虚拟运营商apn配置
1,百度apn概念:
APN(Access Point Name),即“接入点...
分类:
其他好文 时间:
2014-09-24 15:13:57
阅读次数:
722
//将像素point由point所在视图转换到目标视图view中,返回在目标视图view中的像素值- (CGPoint)convertPoint:(CGPoint)point toView:(UIView *)view;//将像素point从view中转换到当前视图中,返回在当前视图中的像素值- (...
分类:
移动开发 时间:
2014-09-24 11:31:26
阅读次数:
194
Network Connectivity 1. Important terminologies 1) Link 设备连接的连线。Link本身既可以是有线的,也可以是无线的。 2) Node 设备。电脑,笔记本电脑,手机都可以是Node。 3) Point-to-point 连接的设备只有两个。 4)...
分类:
其他好文 时间:
2014-09-24 10:23:06
阅读次数:
346
We have used many of Python’s built-in types; now we are going to define a new type. As an example, we will create a type called Point that represents...
分类:
其他好文 时间:
2014-09-24 01:28:45
阅读次数:
308
Credit checking feature of Oracle OM provides the ability to check that the customer has sufficient credit available with the organization at the point of order booking ,picking, packing and shipping....
分类:
其他好文 时间:
2014-09-23 23:38:15
阅读次数:
321
题目链接point this这一题有点类似于NIM游戏,当符合一定条件的时候,先手可必胜。这里用到了一个规律。把每一堆的数目进行异或运算(每一堆的数目都是1除外),最后的结果有两种,为0或不为0,若为0则各堆的二进制位相加不进位以后所得到的数的各位数一定是一个偶数。我们称结果为0的情况为平衡状态,如...
分类:
其他好文 时间:
2014-09-23 22:44:05
阅读次数:
206