1 #include 2 3 int isValid(int a[], int low, int high) { 4 if (low >= high) 5 return 1; 6 7 int root = a[high]; 8 int i = lo...
分类:
其他好文 时间:
2015-08-04 20:41:51
阅读次数:
144
void adjustArray(int a[], int n) { int low = 0, high = n - 1; int pivot; while (low < high) { while (a[high] % 2 == 0 && low < high) ...
分类:
编程语言 时间:
2015-08-03 18:27:14
阅读次数:
151
在本科毕业之后,大家就觉得,我擦,JAVA好low, 我擦,J2EE好low。甚至因为我做了一段时间web开发,就叫我web狗。自然而然的,找工作打死也不知道java web开发了。于是来到了这里干起了openstack的运维和少量的开发。随着毕业季的来临,突然发现这个工作不好找,就算找到,也...
分类:
其他好文 时间:
2015-08-02 21:34:56
阅读次数:
103
杨氏矩阵#include<stdio.h>#include<stdlib.h>#defineLOW3#defineLINE3search(chara[][LOW],intnum){ inti=0; intj=0; for(i=0;i<LINE;i++) { for(j=0;j<LOW;j++) { if(a[i][j]==num) return1; } }}intmain(){ chara[3][3]={{1,2,3},{4,5,6},{7,8,9}..
分类:
其他好文 时间:
2015-08-02 06:44:14
阅读次数:
123
#include
#include
#include
#include
#include
#include
using namespace std;
#define maxn 7500
#define inf 0x3f3f3f3f
int n,m;
int g[maxn][maxn];
int clock;
int low[maxn],pre[maxn];
stacks;
int bc;
vect...
分类:
其他好文 时间:
2015-08-01 19:02:31
阅读次数:
112
#include
#include
#include
#include
using namespace std;
#define maxn 7500
#define inf 0x3f3f3f3f
int first[maxn],to[maxn],nxt[maxn],e;
int pre[maxn],low[maxn];
int clock;
int iscut[maxn];
void add(in...
分类:
其他好文 时间:
2015-08-01 17:27:14
阅读次数:
98
无向图割边割点算法而当(u,v)为树边且low[v]>dfn[u]时,表示v节点只能通过该边(u,v)与u连通,那么(u,v)即为割边。 1 void dfs(int u) { 2 //记录dfs遍历次序 3 static int counter = 0; 4 5 ...
分类:
移动开发 时间:
2015-07-31 21:38:31
阅读次数:
296
Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100".
题目并不复杂,以下是我的程序,后面是别人的程序,瞬间low了好大一截!
冗长!!!!!!!class Solution {
public:
s...
分类:
其他好文 时间:
2015-07-29 01:08:13
阅读次数:
133
测试环境:STM32F407168MHz,IAR7.4,优化级别low测试方法:第一个信号是TIM比较器的输出,同时产生比较器中断。中断服务程序里第一句就立即拉高一个GPIO,示波器查两个信号的延迟大致了解中断响应速度。中断向量表在Flash,中断服务程序在Flash,延迟约155ns:中断向量表在内..
分类:
其他好文 时间:
2015-07-28 06:50:32
阅读次数:
367
Resuming from
last article , I modify the bluez code to be a simple peripheral (GATT server).
Step 0.
download the last bluez .
and
Step 1.
use the parameters to configurate...
分类:
系统相关 时间:
2015-07-28 00:56:22
阅读次数:
1621