LeetCode
fxf1012
这个作者很懒,什么都没留下…
展开
-
LeetCode 80 Remove Duplicates from Sorted Array II
LeetCode80 Remove Duplicates from Sorted Array II题目Follow up for “Remove Duplicates”: What if duplicates are allowed at most twice?For example, Given sorted array nums = [1,1,1,2,2,3],Your function s原创 2015-05-08 16:15:15 · 328 阅读 · 0 评论 -
LeetCode 26 Remove Duplicates from Sorted Array
LeetCode26 Remove Duplicates from Sorted Array题目Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for an原创 2015-05-07 21:19:12 · 293 阅读 · 0 评论 -
LeetCode 1 TwoSum
LeetCode1.TwoSumGiven 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 add up to the原创 2015-04-30 15:18:15 · 274 阅读 · 0 评论 -
LeetCode 2 Add Two Numbers
LeetCode2 Add Two Numbers题目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 numbe原创 2015-04-30 22:37:30 · 333 阅读 · 0 评论 -
LeetCode 3 Longest Substring Without Repeating Characters
LeetCode3 Longest Substring Without Repeating Characters题目Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating let原创 2015-04-30 22:42:28 · 469 阅读 · 0 评论 -
LeetCode 36 Valid Sudoku
LeetCode36 Valid Sudoku题目Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with the character ‘.’.A parti原创 2015-05-04 15:53:17 · 343 阅读 · 0 评论