- 博客(5)
- 收藏
- 关注
原创 151. Reverse Words in a String(反转字符串的单词)
Given an input string, reverse the string word by word.Example:Input: “the sky is blue”,Output: “blue is sky the”.Note:A word is defined as a sequence of non-space characters.Input string may co...
2018-12-01 11:39:00
191
原创 125. Valid Palindrome(回文)
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.Note: For the purpose of this problem, we define empty string as valid palindrome.Example...
2018-12-01 11:18:23
160
原创 11. Container With Most Water(容器能包含最多水量)
Given n non-negative integers a1, a2, …, an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two l...
2018-12-01 10:43:54
169
原创 leetcode 28. Implement strStr() Javasubstring 实现
Implement strStr().Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Example 1:Input: haystack = “hello”, needle = “ll”Output: 2Example 2:In...
2018-11-25 12:10:27
174
原创 leetcode64. Minimum Path Sum (最小和路径)
leetcode64. Minimum Path Sum (最小和路径)题目描述:Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.Note: Y...
2018-11-24 11:35:26
181
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅