上一页 1 ··· 6 7 8 9 10 11 12 13 下一页

2016年1月7日

Valid Parentheses

摘要: Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ... 阅读全文

posted @ 2016-01-07 20:29 walkwalkwalk 阅读(159) 评论(0) 推荐(0)

2016年1月6日

4Sum

摘要: Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum of ... 阅读全文

posted @ 2016-01-06 22:24 walkwalkwalk 阅读(177) 评论(0) 推荐(0)

Letter Combinations of a Phone Number

摘要: Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon... 阅读全文

posted @ 2016-01-06 20:36 walkwalkwalk 阅读(169) 评论(0) 推荐(0)

2016年1月4日

3Sum Closest

摘要: Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You m... 阅读全文

posted @ 2016-01-04 23:49 walkwalkwalk 阅读(231) 评论(0) 推荐(0)

N-Queens

摘要: Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.Given an integern, return all distinc... 阅读全文

posted @ 2016-01-04 23:36 walkwalkwalk 阅读(169) 评论(0) 推荐(0)

2016年1月3日

3Sum

摘要: Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Elemen... 阅读全文

posted @ 2016-01-03 23:16 walkwalkwalk 阅读(223) 评论(0) 推荐(0)

Reverse Integer

摘要: Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321click to show spoilers.Subscribeto see which companies asked th... 阅读全文

posted @ 2016-01-03 22:07 walkwalkwalk 阅读(245) 评论(0) 推荐(0)

Longest Common Prefix

摘要: Write a function to find the longest common prefix string amongst an array of strings.Subscribeto see which companies asked this question比较每个字符串的每个字符,... 阅读全文

posted @ 2016-01-03 21:04 walkwalkwalk 阅读(181) 评论(0) 推荐(0)

Roman to Integer

摘要: Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.Subscribeto see which companies asked this q... 阅读全文

posted @ 2016-01-03 21:00 walkwalkwalk 阅读(248) 评论(0) 推荐(0)

Integer to Roman

摘要: Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.Subscribeto see which companies asked this q... 阅读全文

posted @ 2016-01-03 20:56 walkwalkwalk 阅读(233) 评论(0) 推荐(0)

上一页 1 ··· 6 7 8 9 10 11 12 13 下一页

导航