2016年6月7日

摘要: A message containing letters from A-Z is being encoded to numbers using the following mapping: Given an encoded message containing digits, determine t 阅读全文
posted @ 2016-06-07 15:54 怕忘记 阅读(132) 评论(0) 推荐(0)
 
摘要: Given a collection of integers that might contain duplicates, nums, return all possible subsets. Note: The solution set must not contain duplicate sub 阅读全文
posted @ 2016-06-07 15:53 怕忘记 阅读(127) 评论(0) 推荐(0)
 
摘要: Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note:You may assume that nums1 has enough space (size tha 阅读全文
posted @ 2016-06-07 15:49 怕忘记 阅读(132) 评论(0) 推荐(0)
 
摘要: The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return all 阅读全文
posted @ 2016-06-07 15:04 怕忘记 阅读(167) 评论(0) 推荐(0)

2015年10月22日

摘要: Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,3,2].Note... 阅读全文
posted @ 2015-10-22 21:57 怕忘记 阅读(223) 评论(0) 推荐(0)
 
摘要: Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,2,3]. 1 ... 阅读全文
posted @ 2015-10-22 21:22 怕忘记 阅读(134) 评论(0) 推荐(0)
 
摘要: Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[3,2,1]. 1... 阅读全文
posted @ 2015-10-22 21:09 怕忘记 阅读(122) 评论(0) 推荐(0)

2015年10月9日

摘要: Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-... 阅读全文
posted @ 2015-10-09 17:03 怕忘记 阅读(168) 评论(0) 推荐(0)
 
摘要: Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted arraynums=[1,1,1,2,2,3],Your function should re... 阅读全文
posted @ 2015-10-09 17:02 怕忘记 阅读(206) 评论(0) 推荐(0)
 
摘要: Given a set of distinct integers,nums, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not... 阅读全文
posted @ 2015-10-09 16:58 怕忘记 阅读(166) 评论(0) 推荐(0)