
String
文章平均质量分 70
yanrui92
这个作者很懒,什么都没留下…
展开
-
leetcode-anagrams
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.public class Solution { public List anagrams(String[] strs) { HashM原创 2015-01-19 12:08:09 · 338 阅读 · 0 评论 -
leetcode-ZigZag Conversion
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P L S I原创 2015-01-18 08:58:46 · 283 阅读 · 0 评论 -
leetcode-valid parenthesses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()" and "()[]{}" are all va原创 2015-01-18 09:40:08 · 335 阅读 · 0 评论 -
leetcode-count and say
The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is read off as "one 1" or 11.11 is read off as "two 1s" or 21.21 is read off as原创 2015-01-21 08:24:33 · 339 阅读 · 0 评论 -
java 中String 常用
Charsequence最近在学习Android但是在学习过程中发现CharSequence这个数据类型,自己真的是不了解,在上网找了找,原来这是一个接口:在JDK1.4中,引入了CharSequence接口,实现了这个接口的类有:CharBuffer、String、StringBuffer、StringBuilder这个四个类。 CharBuffer为nio里面用的一个类,Strin转载 2015-01-25 09:38:27 · 296 阅读 · 0 评论