??
1.问题描述:
You are given two linked lists representing two non-negativenumbers. The digits are stored in reverse order and each of their nodes containa
single digit. Add the two numbers and re...
分类:
其他好文 时间:
2015-03-13 12:47:51
阅读次数:
721
客户通常对端口数目有着确定的想法。我感到这一点有些不同寻常,原因是人们常常对生活中的其他事情并无此定见。但是,说到RAID或HBA控制器上的端口数目,大家确实有着十分固定的看法。...
分类:
其他好文 时间:
2015-03-13 12:49:52
阅读次数:
135
All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes useful to identify repeated sequences within the DNA.
Wri...
分类:
其他好文 时间:
2015-03-13 12:48:59
阅读次数:
170
思路:这个题目难在建图,开始的时候我想把每个房间没有墙的面求出来,然后再和他邻近的房间加上一条边进行建图,后面发现要通过题目给定的条件求出房间那个面没有墙是十分困难的;后面参考了别人的思路,我们记录每个房间那几面是有墙的(这个很容易做到),然后就不显示建图了,直接通过dfs标记的思想求出这个图所有的连通块(Flood fill 算法)。后面的处理就比较简单了,求出这个连通块后就可以知道总共有几个房间...
分类:
其他好文 时间:
2015-03-13 12:48:27
阅读次数:
161
我们一般都是使用ndk-stack 定位libs下的so错误,动态加载sd卡上的so时不能 多次load了,否则会出现定位位置出错。
操作命令
(adb路径)adb logcat | (ndk-stack路径)ndk-stack -sym (项目jni路径)/obj/local/armeabi-v7a(或者armeabi)
例如我的是这样的
E:\android\eclipse-adt...
分类:
其他好文 时间:
2015-03-13 12:47:55
阅读次数:
143
%%% Moir
%%% 摩尔纹
clc;
clear all;
close all;
addpath('E:\PhotoShop Algortihm\Image Processing\PS Algorithm');
I=imread('4.jpg');
I=double(I);
Image=I;
% Image=0.2989 * I(:,:,1) + 0.5870 * I(:,:,2...
分类:
其他好文 时间:
2015-03-13 12:48:23
阅读次数:
286
报表开发中,经常会碰到一些需要进行非常规统计的报表,固定分组、可重复分组、组内排序,还包括跨行组计算的报表,甚至有些报表本身无数据来源、以及需要对数据源再计算。这些报表本身具备一定的特殊性,使用常规方法往往难于实现。
而集算报表在完成这类特殊统计报表时则比较简单,这里来看下使用集算报表完成固定分组报表的实现过程。
所谓固定分组报表是指分组没有规律,可能是分组范围没有规律,也可能...
分类:
其他好文 时间:
2015-03-13 12:47:14
阅读次数:
312
什么是设计模式 – 总结
设计模式是如何诞生的?
设计模式的作用?
初学者掌握设计模式的方法
如何提升自己使用设计模式的能力...
分类:
其他好文 时间:
2015-03-13 12:47:02
阅读次数:
92
下载地址Sublime下载地址安装 Package Control在Sublime中,按Ctrl+~打开控制台,输入:import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) el...
分类:
其他好文 时间:
2015-03-13 12:46:40
阅读次数:
7878
Optiver sponsored problem.
After years of hard work Optiver has developed a mathematical model that allows them to predict wether or not a company will be succesful. This obviously gives them a grea...
分类:
其他好文 时间:
2015-03-13 12:44:34
阅读次数:
205
题目地址:HDU 1428
先用BFS+优先队列求出所有点到机房的最短距离,然后用记忆化搜索去搜。
代码如下:#include
#include
#include
#include
#include
#include
#include
#include <set...
分类:
其他好文 时间:
2015-03-13 12:44:34
阅读次数:
103
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.
For example,
Given the following matrix:
[
[ 1, 2, 3 ],
[ 4, 5, 6 ],
[ 7, 8, 9 ]
]...
分类:
其他好文 时间:
2015-03-13 12:46:26
阅读次数:
104
首先需要声明,本文纯属一个毫无远见和真才实学的小小散户的愚昧见解,仅供参考。 此路是我开,此树是我栽;
要从此路过,留下买路财。这一段文字,想必看过武侠小说或者武侠剧的人都会非常熟悉。而在现实生活中,有一个行业干的事情,怎么看都是按照这个流程收费的,这个就是高速公路行业。在我的印象中,高速公路不是一个很久远的事情,我的老家在湖南省隆回县,第一条高速公路是沪昆高速的一部分—“潭邵高速”。...
分类:
其他好文 时间:
2015-03-13 12:44:40
阅读次数:
181
openstack创建虚拟机思维导图整理:...
分类:
其他好文 时间:
2015-03-13 12:45:44
阅读次数:
91
Meteor 添加账户系统我们给meteor添加一个账户系统
导入包
meteor add ian:accounts-ui-bootstrap-3
meteor add accounts-password在界面添加登陆按钮
{{> loginButtons}}result...
分类:
其他好文 时间:
2015-03-13 12:42:54
阅读次数:
124
什么是Entity Framework呢(下面简称EF)?
EF(实体框架)是ADO.NET中的一组支持开发面向数据的软件应用程序的技术,是微软的一个ORM框架。ORM(对象关系映射框架):指的是面向对象的对象模型和关系型数据库的数据结构之间的相互转换。
如此官方的解释,你懂吗? 我理解的是,业务实体在内存中表现为对象,在数据库中表现为数据,内存中的对象之间,存在关联和...
分类:
其他好文 时间:
2015-03-13 12:43:05
阅读次数:
118
题目:
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:
You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements from...
分类:
其他好文 时间:
2015-03-13 12:44:23
阅读次数:
139