151.Reverse Words in a String Given an input string, re […]
Battleships in a Board–LeetCode#419
419.Battleships in a Board Given an 2D board, count how […]
Java int与Integer的区别
int是基本数据类型; Integer是int的包装类,是一个类。 例如 /** * Created by P […]
Array Partition I–LeetCode#561
561.Array Partition I Given an array of 2n integers, yo […]
Merge Two Binary Trees–LeetCode#617
617.Merge Two Binary Trees Given two binary trees and i […]
Hamming Distance–LeetCode#461
461.Longest Common Prefix The Hamming distance between […]
Longest Common Prefix–LeetCode#14
1.Longest Common Prefix Write a function to find the lo […]
Reverse Integer–LeetCode#7
1.Reverse Integer Reverse digits of an integer. (反转整形数字 […]
Two Sum–LeetCode#1
1.Two Sum Given an array of integers, return indices of […]
Java 字符串构造器 StringBuilder
采用字符串连接的方式将多个字符串构建为一个字符串: public static void main(Strin […]