name class scoreselect name,class,score,rank() over (partition by class order by score desc) rank1,row_number over(partition by class order by score.....
分类:
其他好文 时间:
2015-07-15 16:32:23
阅读次数:
122
首先介绍下kernel.sem 这个参数 cat?/proc/sys/kernel/sem
250?????32000???32??????128
或者
ipcs?-ls
------?Semaphore?Limits?--------
max?number?of?arrays?=?128
max?semaphore...
分类:
其他好文 时间:
2015-07-15 15:22:41
阅读次数:
167
1 int g_tennis; // not use as possible 2 3 int make_world() { 4 int size = 0; 5 6 return size; 7 } 8 9 const int NUMBER = 100;10 11 enu...
分类:
编程语言 时间:
2015-07-15 15:01:15
阅读次数:
146
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2015-07-15 14:35:53
阅读次数:
78
定义自己的tablecell的方式总结,相关使用TableVIew的教程很多,下面说说我在使用过程中的一些经验,希望对大家有帮助
#import "ViewController.h"
#import "TableViewCell.h"
@interface ViewController ()
{
BOOL type;
int number;
}
@end
@imple...
分类:
移动开发 时间:
2015-07-15 13:25:20
阅读次数:
314
欢迎使用Markdown编辑器写博客问题描述Given a 2d grid map of ‘1’s (land) and ‘0’s (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or verti...
分类:
其他好文 时间:
2015-07-15 13:18:42
阅读次数:
105
题目:
Follow up for N-Queens problem.
Now, instead outputting board configurations, return the total number of distinct solutions.
题意:
接上题N-Queens problem,这里只是要求返回所有的不同的解的数目。
算法分析:
思路与上题...
分类:
编程语言 时间:
2015-07-15 11:06:36
阅读次数:
141
1. JacaScript变量变量的定义var money;var title = " hello";2.JacaScript数据类型JacaScript数据类型分为:原始类型和引用类型;原始类型包括:underfined null boolean number string 3. typeof()...
分类:
其他好文 时间:
2015-07-15 06:32:11
阅读次数:
108
You are givennk-digit integers. You have to rearrange the digits in the integers so that the difference between the largest and the smallest number wa...
分类:
其他好文 时间:
2015-07-15 01:17:15
阅读次数:
244
Number Triangles经典DP。自控老师曾经用了一节课讲这道题。。我以为我早就懂了,居然听不懂那一堆奇怪的公式。果然自控是天书。#include using namespace std;const int N = 1004;int f[N][N], dp[N][N];int main(){...
分类:
其他好文 时间:
2015-07-15 01:15:46
阅读次数:
96