摘要: LeetCode第20题 Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is 阅读全文
posted @ 2018-05-19 20:42 嘉禾世兴 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Exampl 阅读全文
posted @ 2018-05-19 15:47 嘉禾世兴 阅读(115) 评论(0) 推荐(0) 编辑
摘要: LeetCode第13题 Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, two is written as II in Roman numeral, ju 阅读全文
posted @ 2018-05-19 11:01 嘉禾世兴 阅读(155) 评论(0) 推荐(0) 编辑
摘要: LeetCode第9题 Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Example 2: 阅读全文
posted @ 2018-05-19 10:01 嘉禾世兴 阅读(118) 评论(0) 推荐(0) 编辑