上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页
摘要: 题目: Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the 阅读全文
posted @ 2016-10-13 22:21 wangxiaobao1114 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 全排列问题总结。包含全排列递归,非递归写法,next_permutation实现原理,寻找字典序第K个全排列 阅读全文
posted @ 2016-10-10 22:59 wangxiaobao1114 阅读(1007) 评论(0) 推荐(0) 编辑
摘要: LeetCode每周末举办比赛,这是今天上午比赛的题解。 1. Add Strings (LeetCode 415 Easy) Given two non-negative numbers num1 and num2 represented as string, return the sum of  阅读全文
posted @ 2016-10-09 21:57 wangxiaobao1114 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a sorted linked list, delete all duplicates such that each element appear only once. (Easy) For example,Given 1->1->2, return 1->2.Given 1-> 阅读全文
posted @ 2016-10-08 21:16 wangxiaobao1114 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.(Medium) For exampl 阅读全文
posted @ 2016-10-08 21:14 wangxiaobao1114 阅读(130) 评论(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 @ 2016-10-08 21:10 wangxiaobao1114 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 题目: Follow up for "Remove Duplicates":What if duplicates are allowed at most twice? (Medium) For example,Given sorted array nums = [1,1,1,2,2,3], Your 阅读全文
posted @ 2016-09-29 22:12 wangxiaobao1114 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 题目: 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 "a 阅读全文
posted @ 2016-09-29 22:09 wangxiaobao1114 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a set of distinct integers, nums, return all possible subsets. Note: The solution set must not contain duplicate subsets. (Medium) For examp 阅读全文
posted @ 2016-09-29 22:05 wangxiaobao1114 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 题目: Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. (Medium) For example,If n = 4 and k = 2, a solution is: 阅读全文
posted @ 2016-09-29 21:56 wangxiaobao1114 阅读(561) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页