上一页 1 2 3 4 5 6 ··· 8 下一页

2014年12月3日

Reverse Nodes in k-Group

摘要: Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-o... 阅读全文

posted @ 2014-12-03 21:13 code#swan 阅读(122) 评论(0) 推荐(0)

Combination Sum II

摘要: Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each number ... 阅读全文

posted @ 2014-12-03 21:03 code#swan 阅读(97) 评论(0) 推荐(0)

Trapping Rain Water

摘要: Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo... 阅读全文

posted @ 2014-12-03 21:02 code#swan 阅读(97) 评论(0) 推荐(0)

Edit Distance

摘要: Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have the fol... 阅读全文

posted @ 2014-12-03 20:52 code#swan 阅读(83) 评论(0) 推荐(0)

Word Search

摘要: Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjace... 阅读全文

posted @ 2014-12-03 20:50 code#swan 阅读(134) 评论(0) 推荐(0)

Search in Rotated Sorted Array II

摘要: Follow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Write a function to... 阅读全文

posted @ 2014-12-03 20:49 code#swan 阅读(112) 评论(0) 推荐(0)

Maximal Rectangle

摘要: Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.public class Solution { public... 阅读全文

posted @ 2014-12-03 20:47 code#swan 阅读(168) 评论(0) 推荐(0)

Subsets II

摘要: Given a collection of integers that might contain duplicates,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.... 阅读全文

posted @ 2014-12-03 20:47 code#swan 阅读(116) 评论(0) 推荐(0)

Largest Rectangle in Histogram

摘要: Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histog... 阅读全文

posted @ 2014-12-03 20:46 code#swan 阅读(171) 评论(0) 推荐(0)

Partition List

摘要: Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the origi... 阅读全文

posted @ 2014-12-03 20:45 code#swan 阅读(112) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 8 下一页

导航