dariusdong's BLOG

以俺多年种田的经验来看,神马都略懂一点,生活才多彩一点……猪葛亮说的……

日志数(39)

[2013-11-08]Leetcode----Add Two Numbers

leetcode oj题目: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 numbers and return it as a linked list.

[2013-11-07]Leetcode----Two Sum

leetcode oj题目:Two Sum; Given an array of integers, find two numbers such that they add up to a specific target number.

[2013-11-07]Leetcode----Search Insert Position

leetcode oj题目:Search Insert Position; Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.

[2013-11-07]Leetcode----Reverse Integer

leetcode oj题目:Reverse Integer; Reverse digits of an integer.

[2013-11-07]Leetcode----Remove Duplicates from Sorted List

leetcode oj题目:Given a sorted linked list, delete all duplicates such that each element appear only once.

[2013-11-07]Leetcode----Merge Two Sorted Lists

leetcode oj题目:Merge Two Sorted Lists; Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.

[2013-11-06]Leetcode----Longest Substring Without Repeating Characters

leetcode oj题目: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 letters for "abcabcbb" is "abc", which the length is 3. For "bbbbb" the longest substring is "b", with the length of 1.

[2013-11-04]Leetcode----Remove Duplicates from Sorted Array

leetcode oj题目: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 another array, you must do this in place with constant memory.

[2013-11-04]Leetcode----Container With Most Water

leetcode oj题目:Container With Most Water ; Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container, such that the container contains the most water.

[2013-11-03]Leetcode----Plus One

leetcode oj题目:Plus One; Given a number represented as an array of digits, plus one to the number.
« Previous Next »