
LeetCode
文章平均质量分 62
H_Arbiter
这个作者很懒,什么都没留下…
展开
-
LeetCode 4 - Median of Two Sorted Arrays
Median of Two Sorted ArraysMar 28 '11 There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log原创 2013-03-03 09:50:01 · 339 阅读 · 0 评论 -
LeetCode 2 - Add Two Numbers
Add Two NumbersNov 1 '11 You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two原创 2013-03-02 12:59:54 · 216 阅读 · 0 评论 -
LeetCode 3 - Longest Substring Without Repeating Characters
Longest Substring Without Repeating CharactersMay 16 '11 Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeat原创 2013-03-03 01:43:36 · 222 阅读 · 0 评论 -
LeetCode 1 - Two Sum
Two SumMar 14 '11 Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they原创 2013-03-02 12:33:41 · 230 阅读 · 0 评论 -
LeetCode 8 - String to Integer (atoi)
String to Integer (atoi)Dec 27 '11 Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and a原创 2013-03-04 13:38:27 · 292 阅读 · 0 评论 -
LeetCode 7 - Reverse Integer
Reverse IntegerDec 26 '11 Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 Have you thought about this? Here are some good questions to ask原创 2013-03-04 10:09:34 · 221 阅读 · 0 评论 -
LeetCode 6 - ZigZag Conversion
ZigZag ConversionDec 6 '11 The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better leg原创 2013-03-04 10:03:40 · 281 阅读 · 0 评论 -
LeetCode 5 - Longest Palindromic Substring
Longest Palindromic SubstringNov 11 '11 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原创 2013-03-04 00:01:13 · 226 阅读 · 0 评论 -
LeetCode 9 - Palindrome Number
Palindrome NumberJan 4 '124196 / 10440 Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could negative integers be palindromes? (ie, -1) If you原创 2013-07-01 04:35:04 · 510 阅读 · 0 评论