11. Container With Most Water

Given n non-negative integers a1,a2,...,ana1,a2,...,ana_1, a_2, ..., a_n, where each represents a point at coordinate (i,ai)(i,ai)(i, a_i). n vertica...

2018-04-19 16:35:37

阅读数:12

评论数:0

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. Example: Input: “babad” O...

2018-04-17 11:35:49

阅读数:40

评论数:0

3. Longest Substring Without Repeating Characters

Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is ...

2018-04-12 15:54:11

阅读数:12

评论数:0

2. Add Two Numbers

You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes conta...

2018-04-11 11:17:34

阅读数:13

评论数:0

463. Island Perimeter

You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/v...

2018-04-10 11:34:34

阅读数:15

评论数:0

461. Hamming Distance

The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calc...

2018-04-10 11:01:38

阅读数:11

评论数:0

459. Repeated Substring Pattern

Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You may ...

2018-04-09 16:32:31

阅读数:11

评论数:0

455. Assign Cookies

Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child iii has ...

2018-04-09 10:49:11

阅读数:11

评论数:0

453. Minimum Moves to Equal Array Elements

Given a non-empty integer array of size n, find the minimum number of moves required to make all array elements equal, where a move is incrementing n...

2018-04-02 17:29:43

阅读数:15

评论数:0

448. Find All Numbers Disappeared in an Array

Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements of [1, n...

2018-04-02 17:06:54

阅读数:11

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭