上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: Problem statement: Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the w 阅读全文
posted @ 2017-05-15 05:39 蓝色地中海 阅读(781) 评论(0) 推荐(0)
摘要: Problem statement: Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. For example, giv 阅读全文
posted @ 2017-05-14 05:55 蓝色地中海 阅读(174) 评论(0) 推荐(0)
摘要: Problem statement: Given an integer n, generate all structurally unique BST's (binary search trees) that store values 1...n. For example,Given n = 3, 阅读全文
posted @ 2017-05-14 01:12 蓝色地中海 阅读(94) 评论(0) 推荐(0)
摘要: Problem statement: Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example,Given n = 3, there are total 阅读全文
posted @ 2017-05-13 11:52 蓝色地中海 阅读(151) 评论(0) 推荐(0)
摘要: Problem statement: Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. For example, 阅读全文
posted @ 2017-05-13 11:25 蓝色地中海 阅读(153) 评论(0) 推荐(0)
摘要: Problem statment: Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rec 阅读全文
posted @ 2017-05-13 09:58 蓝色地中海 阅读(174) 评论(0) 推荐(0)
摘要: Problem statement: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a 阅读全文
posted @ 2017-05-12 11:20 蓝色地中海 阅读(137) 评论(0) 推荐(0)
摘要: 最近一直在学习Deep Frist Search,也在leetcode上练习了不少题目。从最开始的懵懂,到现在遇到问题基本有了思路。依然清晰的记得今年2月份刚开始刷题的时做subsets的那个吃力劲,脑子就是转不过来到底该如何的递归,甚至试过使用debugger一步步的来看看堆栈到底是如何调用和返回 阅读全文
posted @ 2017-05-11 12:08 蓝色地中海 阅读(314) 评论(0) 推荐(0)
摘要: Problem statement: Follow up for N-Queens problem. Now, instead outputting board configurations, return the total number of distinct solutions. Soluti 阅读全文
posted @ 2017-05-11 09:39 蓝色地中海 阅读(170) 评论(0) 推荐(0)
摘要: Problem statement: 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 int 阅读全文
posted @ 2017-05-11 09:30 蓝色地中海 阅读(138) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页