leetcode
AuroraWang
这个作者很懒,什么都没留下…
展开
-
01
1. Leetcode problems (2019.2.25-2019.3.3) I.Question 13. Roman to Integer Solution 1: #include <iostream> #include <string> using namespace std; int romanCharToInt(char ch){ //利用switch c...原创 2019-03-03 08:11:56 · 119 阅读 · 0 评论 -
02.最长公共前缀(leetcode T14)
题目: 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 “”. Example 1: Input: [“flower”,“flow”,“flight”] Outpu...原创 2019-03-13 21:54:34 · 239 阅读 · 0 评论 -
03.有效的括号(leetcodeT20)
题目 Given a string containing just the characters ‘(’, ‘)’, ‘{’, ‘}’, ‘[’ and ‘]’, determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of...原创 2019-03-14 22:41:40 · 159 阅读 · 0 评论