原文链接:java-performance翻译:ImportNew.com-夏千林译文链接:http://www.importnew.com/7656.htmlChangeLog:2013年11月19日,更新了Java8版本中的变化。013年11月28日,更新了Java7u40版本中的变化。(感谢S...
分类:
编程语言 时间:
2015-05-06 10:45:38
阅读次数:
258
1 package cn.it; 2 3 import java.util.Arrays; 4 5 public class Tx { 6 public static void main(String[] args) { 7 int start[]={1,4,2,1,2...
分类:
编程语言 时间:
2015-05-06 10:38:04
阅读次数:
122
写出一个函数 anagram(s,
t) 去判断两个字符串是否是颠倒字母顺序构成的
样例
给出 s="abcd",t="dcab",返回 true
python:先排序后比较
class Solution:
"""
@param s: The first string
@param b: The second string
@retu...
分类:
其他好文 时间:
2015-05-06 09:21:10
阅读次数:
137
package xuan.demo;
/**
* @author xuan 素数
*/
public class 素数 {
public static void main(String[] args) {
printNums(1000);//传入打印范围
System.out.println(whether(997));//传入判断数字
printResult(10);
}...
分类:
其他好文 时间:
2015-05-06 09:19:58
阅读次数:
141
1 package cn.it; 2 3 import java.util.Arrays; 4 // 利用分治思想 实现 归并排序 5 public class Fz { 6 public static void main(String[] args) { 7 int ...
分类:
编程语言 时间:
2015-05-06 09:10:07
阅读次数:
140
using System;using System.IO;namespace ConsoleApplication2{ class Program { private const string FILE_NAME = "Test.txt"; static vo...
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-05-06 06:53:51
阅读次数:
135
https://leetcode.com/problems/add-binary/Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100". 1 imp...
分类:
其他好文 时间:
2015-05-06 06:49:57
阅读次数:
150
$f=(string)1050089; for($i=0;$i'; //把102输出把数字转换成字符串输出 //echo substr($f, $i,1).'';//把102输出把数字转换成字符串输出统计总流量 $f=(string)1050089; $info="共"; for($i=0;$i";...
分类:
Web程序 时间:
2015-05-06 01:26:11
阅读次数:
172
1 import java.util.*; 2 3 public class BasicContainer { 4 public static void main(String[] args) { 5 Collection c = new HashSet(); 6 ...
分类:
编程语言 时间:
2015-05-06 01:25:19
阅读次数:
275