码迷,mamicode.com
首页 > 其他好文
Aerospike-Architecture系列之系统概述(System Overview)
系统概述(System Overview) Aerospike是一个分布式可扩展的NoSql数据库,为一下三个主要目标而构建: 创建一个满足当今网络平台应用的弹性,可扩展平台提供与传统数据库一样的鲁棒性和可靠性(例如,ACID)提供操作效率(最小人工参与) 最早发布于Proceedings of VLDB (Very Large Databases) in 2011,Aerospik...
分类:其他好文   时间:2015-04-09 10:39:14    阅读次数:685
leetcode || 71、Simplify Path
problem: Given an absolute path for a file (Unix-style), simplify it. For example, path = "/home/", => "/home" path = "/a/./b/../../c/", => "/c" click to show corner cases. Corner ...
分类:其他好文   时间:2015-04-09 10:39:36    阅读次数:106
算术运算
轻开平台(原WebEasy)能直接把字符串作为算术或逻辑表达式进行计算,写法类似于书包取值表达式...
分类:其他好文   时间:2015-04-09 10:40:54    阅读次数:134
Number of Islands
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 vertically. You may assume all four edges of the grid are all surrounded by water....
分类:其他好文   时间:2015-04-09 10:41:17    阅读次数:185
JDK Tomcat环境配置
1.JDK配置:     我这里用的是jdk7_64的版本,需要在官网下载。     首先我们先安装好jdk,然后配置环境变量    1.1  配置 JAVA_HOME:C:\Program Files\Java\jdk1.7.0_67                 jdk的安装目录    1.2  配置 CLASSPATH:.;%JAVA_HOME%\lib\dt.jar;%JAVA...
分类:其他好文   时间:2015-04-09 10:40:11    阅读次数:130
redhad6.0升级glibc
0.以下在系统redhat6.0 x86_64上操作 1.试图运行程序,提示"libc.so.6: version `GLIBC_2.14' not found",原因是系统的glibc版本太低,软件编译时使用了较高版本的glibc引起的: 2.查看系统glibc支持的版本: [ghui@StuOS bin]$ strings /lib64/libc.so.6 |grep GLIBC_ GL...
分类:其他好文   时间:2015-04-09 10:38:10    阅读次数:134
Flatten Binary Tree to Linked List--LeetCode
题目: Given a binary tree, flatten it to a linked list in-place. For example, Given 1 / 2 5 / \ 3 4 6 The flattened tree should look like: ...
分类:其他好文   时间:2015-04-09 10:38:07    阅读次数:128
leetcode || 72、Edit Distance
problem: Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have the following 3 operation...
分类:其他好文   时间:2015-04-09 10:36:31    阅读次数:140
NYOJ542试制品,<虐心模拟题>
试 制 品 时间限制:1000 ms  |  内存限制:65535 KB 难度:4 描述 ZZ大学的Dr.Kong最近发现实验室的很多试制品都已经用完。由于项目经费有限,为了节省,Dr.Kong决定利用实验室现有的试制品来生成所缺的试制品。为此,Dr.Kong连续几天通宵达旦整理出一份研究资料并让研究生Bill去实验并统计能产生多少种所缺的试制品。 Bill从头到尾翻完所有的资料,发...
分类:其他好文   时间:2015-04-09 10:36:38    阅读次数:146
ZOJ 3822 Domination 概率DP求期望
Domination Time Limit: 8 Seconds      Memory Limit: 131072 KB      Special Judge Edward is the headmaster of Marjar University. He is enthusiastic about chess and often plays chess with hi...
分类:其他好文   时间:2015-04-09 10:37:06    阅读次数:119
关于sizeof和memset/memcpy的一些事
首先,sizeof是一个操作符,不是一个函数,但是当操作数为类型名称时需要用小括号将类型名称包围起来(操作数为变量时不需要),这一规则使得sizeof看起来想一个函数一样。其次如果sizeof的操作数为静态数组名时,得到的结果是整个数组所占的空间大小(以byte为单位),但是如果操作数动态数组时,得到只是一个指针变量所占的用的大小(我的机器上是4byte)。这是因为数组和指针实际上是两个不同的对象(...
分类:其他好文   时间:2015-04-09 10:35:27    阅读次数:292
Pascal's Triangle--LeetCode
题目: Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5, Return [ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1] ] 思路:第n层有n个数,而且第n...
分类:其他好文   时间:2015-04-09 10:35:44    阅读次数:105
Hugepages详解
IBM的创始人Thomas J. Watson曾经说: “全世界只需要5台电脑就足够了”。 Microsoft的创始人Bill Gates曾在一次演讲中说:“个人用户的计算机内存只需640K ”。 Intel创始人之一Gordon Moore曾经说:“当价格不变时,集成电路上可容纳的晶体管数目,约每隔18个月便会增加一倍,性能也会增加一倍”。 前面两句话在今天看来实际上是十分荒谬...
分类:其他好文   时间:2015-04-09 10:35:17    阅读次数:412
如何恢复被删除的word自动保存文件,也就是恢复文件
恢复被删除的自动保存文件,也就是误删的恢复文件 1、恢复误删文件    利用文件恢复工具,如360文件恢复,恢复所误删文件。 具体:利用你的文件名进行搜索,找到后缀.ASD的文件,文件名((Autosaved-304379081592903232)).asd 2、移动文件    用word 2007恢复不了,提示格式不能支持,不过用word 2010就可...
分类:其他好文   时间:2015-04-09 10:34:02    阅读次数:277
利用selector方法使listview,gridview的item背景变色
当我点击了一个item后,这个item的背景会一直变色下去, 刚开始使用state_selected,想着点击item后,选中后,他的背景就会改变,但发现并没有起作用, 之后经过谷歌,找到了实现该效果的方法, 我们应该用state_activated而不是state_selected这个方法,并且在xml给listview或者gridview设置他的属性android:choiceMode="singleChoice" 保证只有一个item被选中...
分类:其他好文   时间:2015-04-09 10:36:03    阅读次数:134
Pascal's Triangle II--LeetCode
题目: Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3, Return [1,3,3,1]. Note: Could you optimize your algorithm to use only O(k) extra space? ...
分类:其他好文   时间:2015-04-09 10:33:09    阅读次数:143
BZOJ 3943 Usaco2015 Feb SuperBull Prim
题目大意:给定n个数,每次选择两个数,将两数的异或值计入答案,并删掉其中一个,反复如此直到只剩一个数为止,求答案的最大值 每次将选择的两个数连边,那么显然会得到一棵树 用Prim算法求最大生成树即可 #include #include #include #include #define M 2020 using namespace std; int n,a[M]; long long...
分类:其他好文   时间:2015-04-09 10:33:10    阅读次数:161
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!