LeetCode
文章平均质量分 62
H_Arbiter
这个作者很懒,什么都没留下…
展开
-
LeetCode 4 - Median of Two Sorted Arrays
Median of Two Sorted ArraysMar 28 '11There 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 · 301 阅读 · 0 评论 -
LeetCode 2 - Add Two Numbers
Add Two NumbersNov 1 '11You 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 · 188 阅读 · 0 评论 -
LeetCode 3 - Longest Substring Without Repeating Characters
Longest Substring Without Repeating CharactersMay 16 '11Given 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 · 198 阅读 · 0 评论 -
LeetCode 1 - Two Sum
Two SumMar 14 '11Given 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 · 203 阅读 · 0 评论 -
LeetCode 8 - String to Integer (atoi)
String to Integer (atoi)Dec 27 '11Implement 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 · 258 阅读 · 0 评论 -
LeetCode 7 - Reverse Integer
Reverse IntegerDec 26 '11Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321Have you thought about this?Here are some good questions to ask原创 2013-03-04 10:09:34 · 187 阅读 · 0 评论 -
LeetCode 6 - ZigZag Conversion
ZigZag ConversionDec 6 '11The 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 · 247 阅读 · 0 评论 -
LeetCode 5 - Longest Palindromic Substring
Longest Palindromic SubstringNov 11 '11Given 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 · 200 阅读 · 0 评论 -
LeetCode 9 - Palindrome Number
Palindrome NumberJan 4 '124196 / 10440Determine 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 · 481 阅读 · 0 评论