Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).
For example,
S = "ADOBECODEBANC"
T = "ABC"
Minimum window is "BAN...
【数据结构】二叉树层次遍历package 蓝桥练习;public class 二叉树层次遍历 { public static int MAXSIZE = 100; public static Node queue[] = new Node[MAXSIZE]; public static void main(String[] args) {
Node h = new...
分类:
其他好文 时间:
2015-04-13 09:40:58
阅读次数:
134
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class MyEclipseGen {
private static final String LL = "Decompiling this copyright...
分类:
系统相关 时间:
2015-04-13 09:31:20
阅读次数:
149
Title:Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the te...
分类:
其他好文 时间:
2015-04-13 09:24:58
阅读次数:
142
//StringBuffer的insert()方法和append()方法class aa{ public static void main (String[] args) { StringBuffer str = new StringBuffer("wlf"); System.out.pri...
分类:
移动开发 时间:
2015-04-13 09:24:55
阅读次数:
183
String 字符串常量 StringBuffer 字符串变量(线程安全) StringBuilder 字符串变量(非线程安全) 简要的说, String 类型和 StringBuffer 类型的主要性能区别其实在于 String 是不可变的对象, 因此在每次对 String 类型进行改变的时候其实...
分类:
其他好文 时间:
2015-04-13 09:19:40
阅读次数:
97
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".博主对于自己那冗长的代码真是累感不爱了~连注释都不用标了,特别清晰明了,捂脸逃走~只能安慰自己...
分类:
其他好文 时间:
2015-04-13 06:51:00
阅读次数:
107
惯用C的程序员要注意,在PERL中,字符串的末尾并不含有隐含的NULL字符,NULL字符可以出现在串的任何位置;单引号字符串与双引号字符串有两个区别,一是没有变量替换功能,二是反斜线不支持转义字符,而只在包含单引号和反斜线时起作用。单引号另一个特性是可以跨多行;字符串和数值的互相转换,$string...
分类:
其他好文 时间:
2015-04-13 01:41:54
阅读次数:
138
下面代码:package com.lk.C;public class Test5 { public static void main(String[] args) { go(new MyBase()); } static void go(Base b){ ...
分类:
其他好文 时间:
2015-04-13 00:23:57
阅读次数:
161
internal class Program { private static void Main(string[] args) { var ret = 2 &1; // B.Print(); new ...
分类:
其他好文 时间:
2015-04-13 00:23:43
阅读次数:
162