LeetCode 468. Validate IP Address

原题网址:https://leetcode.com/problems/validate-ip-address/ 方法:扫描检查,代码写得比较丑陋,暂时凑合着。 public class Solution { private static final String NEITHER = &...

2016-12-15 06:07:59

阅读数:484

评论数:0

LeetCode 165. Compare Version Numbers(比较版本)

原题网址:https://leetcode.com/problems/compare-version-numbers/ Compare two version numbers version1 and version2. If version1 > version2 return 1, ...

2016-05-25 01:40:07

阅读数:295

评论数:0

LeetCode 171. Excel Sheet Column Number(Excel列号)

原题网址:https://leetcode.com/problems/excel-sheet-column-number/ Related to question Excel Sheet Column Title Given a column title as appear in an Ex...

2016-05-25 01:36:49

阅读数:329

评论数:0

LeetCode 186. Reverse Words in a String II(反转单词)

原题网址:https://leetcode.com/problems/reverse-words-in-a-string-ii/ Given an input string, reverse the string word by word. A word is defined as a seq...

2016-05-25 01:36:04

阅读数:1139

评论数:0

LeetCode 93. Restore IP Addresses(恢复IP地址)

原题网址:https://leetcode.com/problems/restore-ip-addresses/ Given a string containing only digits, restore it by returning all possible valid IP addre...

2016-05-23 00:34:59

阅读数:744

评论数:0

LeetCode 71. Simplify Path(简化路径)

原题网址:https://leetcode.com/problems/simplify-path/ Given an absolute path for a file (Unix-style), simplify it. For example, path = "/home/&qu...

2016-05-22 00:05:09

阅读数:508

评论数:0

LeetCode 65. Valid Number(校验数字)

原题网址:https://leetcode.com/problems/valid-number/ Validate if a given string is numeric. Some examples: "0" => true " 0.1 " ...

2016-05-22 00:04:48

阅读数:459

评论数:0

LeetCode 58. Length of Last Word(最后一个单词的长度)

原题网址:https://leetcode.com/problems/length-of-last-word/ Given a string s consists of upper/lower-case alphabets and empty space characters ' ', re...

2016-05-21 07:44:17

阅读数:317

评论数:0

LeetCode 8. String to Integer (atoi)(字符串转数字)

原题网址:https://leetcode.com/problems/string-to-integer-atoi/ Implement atoi to convert a string to an integer. Hint: Carefully consider all possible...

2016-05-19 04:32:35

阅读数:344

评论数:0

LeetCode 297. Serialize and Deserialize Binary Tree(二叉树的序列化和反序列化)

原题网址:https://leetcode.com/problems/serialize-and-deserialize-binary-tree/ Serialization is the process of converting a data structure or object int...

2016-04-16 15:44:04

阅读数:1299

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭