Leetcode
小月月不脱更
这个作者很懒,什么都没留下…
展开
-
1.Two Sum
Q: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not use the sam...原创 2019-01-28 15:27:01 · 85 阅读 · 0 评论 -
290. Word Pattern
Q:Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word in str. Exampl...原创 2019-01-29 13:36:52 · 115 阅读 · 0 评论 -
20. Valid Parentheses
Q: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 b...原创 2019-01-30 13:50:13 · 59 阅读 · 0 评论