leetcode
yuzj_123
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Leetcode 5. Longest Palindromic Substring(字符串)
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring.Difficulty: Medium分析:寻找字符串中原创 2016-03-16 11:31:54 · 394 阅读 · 0 评论 -
LeetCode 127 Word Ladder (广度优先搜索)
最近重新捡起算法来看,发现广度优先搜索的代码不是很熟,就在leetcode上搜了一下,找到这道题练练,还是发现了很多问题的。题目描述: Given two words (beginWord and endWord), and a dictionary’s word list, find the length of shortest transformation sequence from begi原创 2016-04-05 16:42:15 · 861 阅读 · 1 评论 -
leetcode 82. Remove Duplicates from Sorted List II (线性表)
leetcode 82. Remove Duplicates from Sorted List IIGiven a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.For example, Given 1->2原创 2016-03-11 18:50:07 · 588 阅读 · 0 评论 -
Leetcode 4. Median of Two Sorted Arrays(二分法)
There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).Difficulty: Hard对于两个排序数组,找出中位数原创 2016-03-14 23:35:13 · 606 阅读 · 0 评论 -
Leetcode 3.Longest Substring Without Repeating Characters(hashmap)
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for “abcabcbb” is “abc”, which the length is 3. For “原创 2016-03-15 15:14:07 · 509 阅读 · 0 评论
分享