码迷,mamicode.com
首页 >  
搜索关键字:generate parentheses    ( 3729个结果
Unique Binary Search Tree II ***
Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 uni...
分类:其他好文   时间:2015-07-30 01:58:55    阅读次数:171
20.Valid Parentheses (Stack)
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:其他好文   时间:2015-07-29 22:45:22    阅读次数:142
经典中的经典Unique Binary Search Trees II
Unique Binary Search Trees II 原题: Given n, generate all structurally unique BST's (binary search trees) that store values 1...n. For example, Given n = 3, your program should...
分类:其他好文   时间:2015-07-29 21:23:20    阅读次数:101
022 Generate Parentheses
022 Generate Parentheses纯递归解法class Solution: def __init__(self): self.ans = [] def generateParenthesis(self, n): self.help(n, ...
分类:其他好文   时间:2015-07-29 15:42:16    阅读次数:95
Basic Calculator 基本计算器-Leetcode
1.题目:Implement a basic calculator to evaluate a simple expression string.The expression string may contain open(and closing parentheses), the plus+or ...
分类:其他好文   时间:2015-07-28 22:39:08    阅读次数:119
leetCode 96.Unique Binary Search Trees (唯一二叉搜索树) 解题思路和方法
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n. For example, Given n = 3, your program should return all 5 unique BST's shown below. 1 3 ...
分类:其他好文   时间:2015-07-28 13:12:05    阅读次数:92
Different Ways to Add Parentheses
问题描述Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators...
分类:其他好文   时间:2015-07-28 12:21:44    阅读次数:84
leetCode 95.Unique Binary Search Trees II (唯一二叉搜索树) 解题思路和方法
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n. For example, Given n = 3, your program should return all 5 unique BST's shown below. 1 3...
分类:其他好文   时间:2015-07-28 10:52:02    阅读次数:199
Basic Calculator 基本计算器-Leetcode
1.题目:Implement a basic calculator to evaluate a simple expression string.The expression string may contain open(and closing parentheses), the plus+or ...
分类:其他好文   时间:2015-07-28 00:26:48    阅读次数:142
[OpenXml] Generate excel in memory and dump to file
public static void GenerateExcelFromStream(){ using (MemoryStream memoryStream = new MemoryStream()) { using (SpreadsheetDocument document =...
分类:其他好文   时间:2015-07-27 14:52:39    阅读次数:135
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!