Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2015-06-10 06:33:56
阅读次数:
99
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-06-09 16:59:44
阅读次数:
135
题目:You are given a string,s, and a list of words,words, that are all of the same length. Find all starting indices of substring(s) insthat is a concat...
分类:
其他好文 时间:
2015-06-09 00:46:26
阅读次数:
116
原创blog,转载请注明出处
blog.csdn.net/hello_hwc
欢迎关注我的iOS SDK详解专栏,这里有很多基础的文章
http://blog.csdn.net/column/details/huangwenchen-ios-sdk.html前言:NSScanner是分析String,把String转为substring和数字的很好的工具。它使用一个NSString初始化,使用...
分类:
移动开发 时间:
2015-06-08 23:28:46
阅读次数:
669
This problem has a long story. There are just too many solutions on the web and it can be studied for a long time before you fully grasp it. Morever, ...
分类:
其他好文 时间:
2015-06-08 22:53:39
阅读次数:
161
1. 题目:Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters. For example...
分类:
其他好文 时间:
2015-06-08 21:19:56
阅读次数:
106
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for “abcabcbb” is “abc”, which the length is 3. For “...
分类:
其他好文 时间:
2015-06-08 17:32:43
阅读次数:
136
Description
You are given a number of case-sensitive strings of alphabetic characters, find the largest string X, such that either X, or its inverse can be found as a substring of any of the given ...
分类:
编程语言 时间:
2015-06-08 15:03:25
阅读次数:
125
首先要明白,java只用的wrapper类型都是不可变的,什么是不可变类型呢?顾名思义,就是这种类型的对象一旦创建好之后,无论调用何种方法都无法改变该对象的任何的属性。String 源码中,它的所有属性都是private final的,因此,只有在构造string对象的时候,这些属性才是可以修改的,string类的方法中需要返回一个string的,如subString,concat等方法,都会先构...
分类:
编程语言 时间:
2015-06-08 13:29:38
阅读次数:
240
注:此分类仅供大概参考,没有精雕细琢。有不同意见欢迎评论~利用堆栈:http://oj.leetcode.com/problems/evaluate-reverse-polish-notation/http://oj.leetcode.com/problems/longest-valid-paren...
分类:
其他好文 时间:
2015-06-08 08:23:23
阅读次数:
119