
LeetCode
文章平均质量分 67
haiyu柠檬
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode刷题(Java)——3. 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. Ex...原创 2018-07-16 14:59:13 · 869 阅读 · 0 评论 -
LeetCode刷题(Java)——引言
转载请注明出处,谢谢:https://blog.youkuaiyun.com/blue___ocean/article/details/80989892 本娃子最近突然想到了一个提升代码能力的方法,故事是这样的: 有一天,本娃子在上班,突然感觉特别困,然后我就去牛客网上逛去了,看到那些大神面试被挂,问的问题都好高大上,本娃子一题也不会,立马就慌了,也不困了,接着就在牛客网上现做了25道选择...原创 2018-07-10 18:26:37 · 298 阅读 · 0 评论 -
LeetCode刷题(Java)——1. Two Sum
Question: 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 us...原创 2018-07-11 13:59:17 · 295 阅读 · 0 评论 -
LeetCode刷题(Java)——2. Two Sum II - Input array is sorted
Question: Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function twoSum should return indices of th...原创 2018-07-11 17:18:27 · 393 阅读 · 1 评论 -
LeetCode刷题(Java)——4.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: 2 Example 2: Input: haystack...原创 2018-07-17 20:29:03 · 344 阅读 · 0 评论 -
LeetCode刷题(Java)——5.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 stri...原创 2018-07-23 22:17:18 · 270 阅读 · 0 评论