![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LC-String
seven_-
这个作者很懒,什么都没留下…
展开
-
<easy>LeetCode Problem -- 657. Judge Route Circle
描述:Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the original place. The move sequence is represente...原创 2018-04-05 19:22:49 · 104 阅读 · 0 评论 -
<easy>LeetCode Problem -- 20. Valid Parentheses
描述: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 o...原创 2019-01-05 15:28:32 · 128 阅读 · 0 评论 -
<easy>LeetCode Problem -- 771. Jewels and Stones
描述:You’re given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of stone you have. You want to know how many of the...原创 2018-12-29 20:33:23 · 106 阅读 · 0 评论 -
<easy>LeetCode Problem -- 557. Reverse Words in a String III
描述:Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.Example 1:Input: “Let’s take LeetCode contes...原创 2018-12-29 19:56:58 · 113 阅读 · 0 评论 -
<easy>LeetCode Problem -- 929. Unique Email Addresses
描述:Every email consists of a local name and a domain name, separated by the @ sign.For example, in alice@leetcode.com, alice is the local name, and leetcode.com is the domain name.Besides lowercas...原创 2019-01-03 23:18:27 · 291 阅读 · 0 评论 -
<easy>LeetCode Problem -- 804. Unique Morse Code Words
描述:International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: “a” maps to “.-“, “b” maps to “-…”, “c” maps to “-.-.”, and so on.Fo...原创 2018-08-11 14:27:27 · 129 阅读 · 0 评论 -
<easy>LeetCode Problem -- 709. To Lower Case
描述: Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase.Example 1: Input: “Hello” Output: “hello” Example 2:Example 2: Inpu...原创 2018-08-11 13:45:57 · 223 阅读 · 0 评论 -
<easy>LeetCode Problem -- 824. Goat Latin
描述:A sentence S is given, composed of words separated by spaces. Each word consists of lowercase and uppercase letters only. We would like to convert the sentence to “Goat Latin” (a made-up language...原创 2018-06-10 16:43:35 · 148 阅读 · 0 评论 -
<easy>LeetCode Problem -- 344. Reverse String
描述:Write a function that takes a string as input and returns the string reversed.Example: Given s = “hello”, return “olleh”.分析:转换字符串的方向,水题思路一:利用for循环从后向前读取。class Solution {public: s...原创 2018-06-10 15:37:46 · 106 阅读 · 0 评论 -
<easy>LeetCode Problem -- 14. Longest Common Prefix
描述: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-01-06 20:58:11 · 141 阅读 · 0 评论