上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 33 下一页
摘要: 题目: A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an encoded me 阅读全文
posted @ 2015-04-18 12:11 YRB 阅读(621) 评论(1) 推荐(0) 编辑
摘要: 题目: Given a collection of integers that might contain duplicates, nums, return all possible subsets. Note: Elements in a subset must be in non-descend 阅读全文
posted @ 2015-04-18 12:10 YRB 阅读(735) 评论(0) 推荐(0) 编辑
摘要: 题目: The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total 阅读全文
posted @ 2015-04-18 12:09 YRB 阅读(527) 评论(0) 推荐(0) 编辑
摘要: 题目: Given two sorted integer arrays A and B, merge B into A as one sorted array. Note:You may assume that A has enough space (size that is greater or 阅读全文
posted @ 2015-04-18 12:08 YRB 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible represen 阅读全文
posted @ 2015-04-18 12:07 YRB 阅读(624) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve 阅读全文
posted @ 2015-04-18 12:06 YRB 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area. 链接: http://leetcode.com/prob 阅读全文
posted @ 2015-04-18 12:05 YRB 阅读(734) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a sorted linked list, delete all duplicates such that each element appear only once. For example,Given 1->1->2, return 1->2.Given 1->1->2->3 阅读全文
posted @ 2015-04-18 12:03 YRB 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example,Given  阅读全文
posted @ 2015-04-18 12:02 YRB 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 题目: Follow up for "Search in Rotated Sorted Array":What if duplicates are allowed? Would this affect the run-time complexity? How and why? Write a fun 阅读全文
posted @ 2015-04-18 12:01 YRB 阅读(304) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 33 下一页