码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Java 1.7.0_06中String类内部实现的一些变化【转】
原文链接: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
C#的IO操作
using System;using System.IO;namespace ConsoleApplication2{ class Program { private const string FILE_NAME = "Test.txt"; static vo...
分类:Windows程序   时间:2015-05-06 08:01:29    阅读次数:155
[LeetCode] Longest Substring Without Repeating Characters 最长无重复子串
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
Add Binary
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
php字符串(三)
$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
JAVA_容器API_Collection
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!