- 博客(5)
- 收藏
- 关注
原创 3. Longest Substring Without Repeating Characters
Q:Given a string, find the length of the longest substring without repeating characters.Example 1:Input: “abcabcbb”Output: 3Explanation: The answer is “abc”, with the length of 3.Example 2:Input...
2019-02-07 14:44:56 78
原创 2. Add Two Numbers
Q: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and retur...
2019-02-01 15:01:06 121
原创 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
原创 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
原创 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
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人