package com.leegh.oopimport scala.io.Sourceimport java.io.PrintWriterimport java.io.File/** * @author Guohui Li */object FileOps { def main(args: Arr....
分类:
其他好文 时间:
2015-08-02 08:51:18
阅读次数:
103
正则可以看做一门 DSL,但它却应用极其广泛,可以轻松解决很多场景下的字符串匹配、筛选问题。同时呢有句老话: “ 如果你有一个问题,用正则表达式解决,那么你现在就有两个问题了。” Some people, when confro...
分类:
编程语言 时间:
2015-08-02 06:45:40
阅读次数:
249
jvm参数的设置-server:一定要作为第一个参数,在多个CPU时性能佳-xms:初始化堆内存的大小-xmx:最大堆内存的大小-xx:PermSize:永久内存区初始化大小-xx:MaxPermSize:永久内存区最大大小-xx:MaxNewSize:新生成池最大大小-Xss:每个线程的Stack大小xms,xmx,MaxNewSize是..
分类:
其他好文 时间:
2015-08-02 06:44:11
阅读次数:
106
点击打开hdu1209
Problem Description
There is an analog clock with two hands: an hour hand and a minute hand. The two hands form an angle. The angle is measured as the smallest angle between the two ha...
分类:
其他好文 时间:
2015-08-02 06:28:04
阅读次数:
165
【066-Plus One(加一)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 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 di...
分类:
编程语言 时间:
2015-08-02 06:24:03
阅读次数:
159
【067-Add Binary(二进制加法)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100"
题目大意 给定两个二进制的字符串...
分类:
编程语言 时间:
2015-08-02 06:23:42
阅读次数:
194
【064-Minimum Path Sum(最小路径和)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 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...
分类:
编程语言 时间:
2015-08-02 06:23:02
阅读次数:
928
The least oneTime Limit: 9000/3000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 534Accepted Submission(s): 203Problem...
分类:
其他好文 时间:
2015-08-02 06:22:20
阅读次数:
131