Posted on Friday, October 11, 2013 .Net has three low-level mechanisms to run code in parallel: Thread, ThreadPool, and Task. These three mechanism se...
分类:
其他好文 时间:
2015-01-13 19:35:59
阅读次数:
154
题意:求哪些点是割点,割掉以后能把图分成几块。
太水不欲发题解。
tarjan就好,不懂看代码。
代码:
#include
#include
#include
#include
#define N 1005
using namespace std;
int map[N][N];
bool exist[N];
int dfn[N],low[N],cnt;
int stk[N],top...
分类:
其他好文 时间:
2015-01-13 10:42:00
阅读次数:
162
Implement int sqrt(int x).
Compute and return the square root of x.
二分查找法:
class Solution {
public:
int sqrt(int x)
{
int high = INT_MAX;
int low = 0;
while(low...
分类:
其他好文 时间:
2015-01-12 17:41:51
阅读次数:
138
想查询 dev/video的类型,找不到命令,闲的蛋疼留个模版
用的时候把video列表写进solve前的 dev_list即可
#include
#include
#include
#include
#include /* low-level i/o */
#include
#include
#include
#include
#include...
分类:
系统相关 时间:
2015-01-12 17:39:19
阅读次数:
385
用惯了 crashlytics ,Crash 收集功能的确很强大,各种 Crash 收集,而且实时给开发者发送邮件
详情见:唐巧一篇文章
国内的 Crash 的第三方,相比之下就 Low 很多,毕竟人家也是专业做 Crash 的,貌似被 Twitter收购了
但是你想过没有自己实现一个简单的 Crash 收集呢,比国内的第三方简陋些,可以实现基本功能呢?
先说 Crash ,...
分类:
移动开发 时间:
2015-01-12 14:47:45
阅读次数:
207
1 // LowArrayApp.java 2 // demonstrates array class with low-level interface 3 // to run this program: C>java LowArrayAPP 4 //java数据结构和算法(第二版)拉佛 著 ...
分类:
移动开发 时间:
2015-01-11 14:42:20
阅读次数:
247
1 px 像素单位 像素和设备有关 如480 * 320分辨率的手机,则横向480个像素点,纵向320个像素点. 固定长度下像素点越多,则像素更高,像素点更小,图像更清晰2. dpi :dots per inch 每英寸像素个数,常见取值 120,160,240,320。分别对应low,mediu....
分类:
其他好文 时间:
2015-01-08 19:47:57
阅读次数:
134
linux系统每过一定时间就会唤醒kswapd进程,看看内存是否紧张,如果不紧张,则睡眠,在kswapd中,有2个阀值,pages_hige和pages_low,当空闲内存页的数量低于pages_low的时候,kswapd进程就会扫描内存并且每次释放出32个freepages,直到freepage的数量到达pages_high.linux在负载比..
分类:
移动开发 时间:
2015-01-07 19:06:14
阅读次数:
205
zabbix自带的“TemplateOSLinux”模板支持监控已挂载的磁盘空间利用率,是利用LLD(Low-leveldiscovery)实现的,却没有对磁盘IO监控。本篇文章就介绍利用zabbixLLD功能监控磁盘IO的方法。思路:首先创建Discoveryrules,在agent端配置对应的UserParameter,调用编写好的shell..
分类:
其他好文 时间:
2015-01-06 18:18:21
阅读次数:
186
1 #include 2 #include 3 #include 4 5 #define ARRAY_SIZE 10 6 7 int binarySearch(int *arr, int size, int target) 8 { 9 int low = 0;10 in...
分类:
其他好文 时间:
2015-01-06 15:25:25
阅读次数:
145