码迷,mamicode.com
首页 >  
搜索关键字:generate parentheses    ( 3729个结果
1035. Password
1035. Password (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueTo prepare for PAT, the judge sometimes has to generate random passwords ...
分类:其他好文   时间:2015-02-05 17:48:11    阅读次数:190
Leetcode: Fraction to Recurring Decimal
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating, enclose the repeating part in parentheses....
分类:其他好文   时间:2015-02-05 00:50:42    阅读次数:174
leetcode 32. Longest Valid Parentheses
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:其他好文   时间:2015-02-05 00:41:45    阅读次数:200
[LeetCode]59.Spiral Matrix II
【题目】 Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example, Given n = 3, You should return the following matrix: [ [ 1, 2, 3 ], [ 8,...
分类:其他好文   时间:2015-02-04 23:29:21    阅读次数:236
LeetCode --- 32. Longest Valid Parentheses
题目链接:Longest Valid Parentheses Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", the longest valid paren...
分类:其他好文   时间:2015-02-04 23:22:51    阅读次数:189
PAT1035. Password
To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords ...
分类:其他好文   时间:2015-02-04 18:02:49    阅读次数:154
MSSQL中把表中的数据导出成Insert
use mastergoif exists (select name from sysobjects where name = 'sp_generate_insert_script')begin drop proc sp_generate_insert_script print 'old ver.....
分类:数据库   时间:2015-02-04 12:42:45    阅读次数:149
leetcode.20-----------Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all va...
分类:其他好文   时间:2015-02-04 09:27:00    阅读次数:108
UVa 673 (括号配对) Parentheses Balance
本来是当做水题来做的,后来发现这道题略坑。首先输入的字符串可能是空串,所以我用了gets函数,紧接着就被scanf("%d", &n)后面的换行符坑掉了。于是乎再加一句getchar() 1 #include 2 #include 3 #include 4 using namespace st...
分类:其他好文   时间:2015-02-04 00:27:19    阅读次数:331
LeetCode118——Pascal's Triangle
Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5, Return [ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1] ] 题目大意 给定numRows,生成帕斯卡三...
分类:其他好文   时间:2015-02-03 19:33:05    阅读次数:155
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!