Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down or right at...
分类:
其他好文 时间:
2015-07-17 19:03:12
阅读次数:
109
Valid Number
Validate if a given string is numeric.
Some examples:
"0" => true
" 0.1 " => true
"abc" => false
"1 a" => false
"2e10" => true
Note: It is intended for the problem statement ...
分类:
其他好文 时间:
2015-07-17 19:00:15
阅读次数:
120
Problem Description
Timer took the Probability and Mathematical Statistics course in the 2012, But his bad attendance angered Professor Tian who is in charge of the course. Therefore, Professor Tia...
分类:
其他好文 时间:
2015-07-17 18:58:22
阅读次数:
121
Plus One
Given a non-negative number represented as an array of digits, plus one to the number.
The digits are stored such that the most significant digit is at the head of the list.
思路:...
分类:
其他好文 时间:
2015-07-17 19:00:08
阅读次数:
134
EJB --- JBoss 开发环境搭配
一. EJB 简单介绍:
EJB (Enterprise JavaBean) 是 J2EE (javaEE) 的一部分,称为 Java 企业 Bean,是 Java 的核心代码,分别是会话 Bean(Session Bean),实体 Bean(Entity Bean)和消息驱动 Bean(MessageDriven Bean)
二. 开发环境搭建:...
分类:
其他好文 时间:
2015-07-17 18:58:18
阅读次数:
167
Problem Description
Alice and Bob are playing a game on an undirected graph with n (n is even) nodes and m edges. Every node i has its own weight Wv, and every edge e has its own weight We.
They...
分类:
其他好文 时间:
2015-07-17 19:00:04
阅读次数:
111
一、类加载器原理
JVM将class文件字节码文件加载到内存中, 并将这些静态数据转换成方法区中的运行时数据结构,在堆中生成一个代表这个类的java.lang.Class
对象,作为方法区类数据的访问入口。
二、类缓存
标准的Java SE类加载器可以按要求查找类,但一旦某个类被加载到类加载器中,它将维持加载(缓存)一段时间。不过,JVM垃圾收集器可以回收这些Class过象。
三...
分类:
其他好文 时间:
2015-07-17 19:00:15
阅读次数:
124
Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100".
思路:二进制加法,比较简单。代码如下:
public class Solution {
public String addBinary(Strin...
分类:
其他好文 时间:
2015-07-17 18:56:43
阅读次数:
129
此段来自:http://baike.baidu.com/link?url=5BxiVhAiQ3LLeLLs_wYrDjQW55DaksohkqMNm5KJdhkLP5BsxQ_WbyqDuhjnvl90ys9UAfr_mcNY-k6mRKrstq#3_7
二分查找又称折半查找,优点是比较次数少,查找速度快,平均性能好;其缺点是要求待查表为有序表,且插入删除困难。因此,折半查找方法适用于不经常...
分类:
其他好文 时间:
2015-07-17 18:57:59
阅读次数:
134
在测试spark计算时,将作业提交到yarn(模式–master yarn-cluster)上,想查看print到控制台这是imposible的,因为作业是提交到yarn的集群上,so 去yarn集群上看日志是很麻烦的,但有特别想看下print的信息,方便调试或者别的目的 在Spark的conf目录下,把log4j.properties.template修改为log4j.properties,原来的...
分类:
其他好文 时间:
2015-07-17 18:55:50
阅读次数:
159
Post Office
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 17110
Accepted: 9226
Description
There is a straight highway with villages alongside the highway....
分类:
其他好文 时间:
2015-07-17 18:55:29
阅读次数:
96
《Openstack ceilometer监控项扩展》(
http://eccp.csdb.cn/blog/?p=352 )主要介绍了对虚拟机监控项扩展, 比较简单。如何在ceilometer框架基础上,增加对宿主机、服务等的监控?本文以宿主机监控为例,详细介绍扩展方法。
首先,总体介绍Ceilometer采集监控数据到持久化存储的流程,在compute节点上通过pollster的轮询机...
分类:
其他好文 时间:
2015-07-17 18:55:18
阅读次数:
771
Climbing Stairs
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
思路:题目也...
分类:
其他好文 时间:
2015-07-17 18:57:42
阅读次数:
162
Simplify Path
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 Cas...
分类:
其他好文 时间:
2015-07-17 18:55:42
阅读次数:
113
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below binary tree and sum
...
分类:
其他好文 时间:
2015-07-17 18:56:10
阅读次数:
108
适用于:
Oracle Database - Enterprise Edition - 版本 8.1.7.4 和更高版本
本文档所含信息适用于所有平台
用途
如何诊断 ORA-4030 错误
排错步骤
诊断并解决 ORA-4030 错误
ORA-4030 意味着什么?
你可能在日志文件中或者屏幕上看到这个错误: ORA-04030 'out of proce...
分类:
其他好文 时间:
2015-07-17 18:55:35
阅读次数:
231
先讲一个为了少打一些代码而滥用继承最终接受惨痛教训的故事。
#include
#include
#include
#include
using namespace std;
const int oo = 1000000000, nil = 0;
int N, M, S, T, K, times[1005];
int u[2...
分类:
其他好文 时间:
2015-07-17 18:54:21
阅读次数:
136