题目链接:https://leetcode.com/problems/generate-parentheses/
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
For example, given n = 3, a...
分类:
其他好文 时间:
2015-07-14 18:01:42
阅读次数:
106
This problem has a naive idea, which is to traverse all possible pairs of two points and see how many other points fall in the line determined by them...
分类:
其他好文 时间:
2015-07-11 22:44:06
阅读次数:
133
In the card game poker, a hand consists of five cards and are ranked, from lowest to highest, in the following way:
High Card: Highest value card.One Pair: Two cards of the same value.Two Pairs: Tw...
分类:
其他好文 时间:
2015-07-07 17:09:16
阅读次数:
131
Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should us...
分类:
其他好文 时间:
2015-07-07 14:48:58
阅读次数:
105
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
For example, given n = 3, a solution set is:
“((()))”, “(()())”, “(())()”, “()(())”, “(...
分类:
其他好文 时间:
2015-07-07 13:00:44
阅读次数:
105
Generate Parentheses
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
For example, given n = 3, a solution set is:
"((()))", "(()())"...
分类:
其他好文 时间:
2015-07-07 09:30:46
阅读次数:
106
Generate Parentheses:
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
For example, given n = 3, a solution set is:
"((()))", "(()())"...
分类:
其他好文 时间:
2015-07-03 09:22:17
阅读次数:
142
一、 JSON
(JavaScript Object Notation)一种简单的数据格式,比xml更轻巧。
Json建构于两种结构:
1、“名称/值”对的集合(A collection of name/value pairs)。不同的语言中,它被理解为对象(object),纪录(record),结构(struct),字典(dictionary),哈希表(hash ta...
分类:
编程语言 时间:
2015-07-02 10:22:43
阅读次数:
186
https://leetcode.com/problems/swap-nodes-in-pairs/Swap Nodes in PairsGiven a linked list, swap every two adjacent nodes and return its head.For exampl...
分类:
其他好文 时间:
2015-07-01 09:51:57
阅读次数:
99
本文参照
http://docs.aws.amazon.com/zh_cn/AWSEC2/latest/UserGuide/managing-users.html
http://docs.aws.amazon.com/zh_cn/AWSEC2/latest/UserGuide/ec2-key-pairs.html#retrieving-the-public-key
1.通过密钥对(keypair...
分类:
Web程序 时间:
2015-06-27 18:21:38
阅读次数:
183