E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
racket
emacs配置
最近在学sicp,试了Dr
Racket
虽然有一些功能非常有吸引力(比如方便的调试功能,代码结构的分析),但是为了更好的编辑还是选择了emacs(传说中神一样的编辑器),于是折腾了好几天emacs,总算摸到了一点一点风
u010327109
·
2016-05-02 10:00
Scheme
emacs
编辑器
WinEdt && LaTex(二)—— 空心中括号
\usepackage{stmaryrd} $$\llb
racket
{x=0}\rrb
racket
$$
lanchunhui
·
2016-05-01 11:00
POJ B
racket
s (区间dp)
题目链接:http://poj.org/problem?id=2955题意:给出一串括号,‘(’与‘)’匹配‘[’与‘]’匹配,问最多有几个匹配得括号思路:区间dp,刚做的时候想到了之前某道题的思路:如果s[i]与s[k]匹配dp=min(dp[i][j],dp[i+1][k-1]+dp[k+1][j-1])然后特判k=j以及k=i+1的情况。后来看了下这道题很久之前居然做过……直接更新区间最大值
csdn364988181
·
2016-04-29 12:00
dp
ACM
B
racket
Sequence
F.B
racket
SequenceTimeLimit:1Sec,MemoryLimit:128MBDescriptionAb
racket
sequenceisastring,containingonlycharacters
qq_31457873
·
2016-04-27 10:00
dp
华工校赛
poj1141B
racket
s Sequence(区间dp括号匹配打印路径)
这道题困扰了我一阵,因为之前只会求最大匹配,不会打印路径,后来发现用递归可以实现,首先我们知道前面定义dp[i][j]为串中第i个到第j个括号的最大匹配数目那么假如我们知道任意i到j从哪儿插入分点使得匹配添加括号最少。那么我们定义pos【i】【j】表示i到j从哪儿分开使得匹配添加括号最少,如果i和j匹配我们可以让pos【i】【j】=-1;我们发现在我们之前更新dp[i][j]的时候如果中间点k使得
zcmartin2014214283
·
2016-04-26 11:00
dp
区间DP
leetcode20-valid parenthese
Givenastringcontainingjustthecharacters‘(‘,‘)’,‘{‘,‘}’,‘[’and‘]’,determineiftheinputstringisvalid.Theb
racket
smustcloseinthecorrectorder
u010111016
·
2016-04-25 20:00
poj2955B
racket
s区间dp(括号匹配)
首先考虑怎么样定义dp让它满足具有通过子结构来求解、定义dp[i][j]为串中第i个到第j个括号的最大匹配数目那么我们假如知道了i到j区间的最大匹配,那么i+1到j+1区间的是不是就可以很简单的得到。那么假如第i个和第j个是一对匹配的括号那么dp[i][j]=dp[i+1][j-1]+2;那么我们只需要从小到大枚举所有i和j中间的括号数目,然后满足匹配就用上面式子dp,然后每次更新dp[i][j]
zcmartin2014214283
·
2016-04-25 20:00
dp
poj
区间DP
poj1141(区间dp基础)
B
racket
sSequenceTimeLimit: 1000MS MemoryLimit: 65536KTotalSubmissions: 29414 Accepted: 8368 SpecialJudgeDescriptionLetusdefinearegularb
racket
ssequenceinthefollowingway
martinue
·
2016-04-25 17:00
dp
ACM
大二
UVA1626 - B
racket
s sequence(区间DP--括号匹配+递归打印)
题目描写叙述:定义合法的括号序列例如以下:1空序列是一个合法的序列2假设S是合法的序列。则(S)和[S]也是合法的序列3假设A和B是合法的序列。则AB也是合法的序列比如:以下的都是合法的括号序列(), [], (()), ([]), ()[], ()[()]以下的都是非法的括号序列(, [, ), )(, ([)], ([(] 给定一个由'(', ')', '[',和']'组成的序列,找出以该序列
mengfanrong
·
2016-04-23 13:00
CodeForces 612C Replace To Make Regular B
racket
Sequence
题意:给你一个只含有括号的字符串,你可以将一种类型的左括号改成另外一种类型,右括号改成另外一种右括号问你最少修改多少次,才能使得这个字符串匹配,输出次数思路:用stack,每次将左括号压进stack里面,遇到右括号就判断一下就好了非法就很简单,看看栈最后是否还有,看看右括号的时候,左括号的栈是否为空#include usingnamespacestd; strings; stackS; intm
qq_21057881
·
2016-04-22 23:00
POJ 2955 B
racket
s
K-B
racket
sTimeLimit:1000MS MemoryLimit:65536KB 64bitIOFormat:%I64d&%I64uSubmitStatusPracticePOJ2955Appointdescription
zp___waj
·
2016-04-22 15:00
C++
ACM
poj
poj 1141 B
racket
s Sequence 区间dp入门
B
racket
sSequenceTimeLimit:1000MS MemoryLimit:65536KTotalSubmissions:29357 Accepted:8351 SpecialJudgeDescriptionLetusdefinearegularb
racket
ssequenceinthefollowingway
zp___waj
·
2016-04-20 21:00
C++
dp
poj
Coloring B
racket
s 区间DP 记忆化搜索
D.ColoringB
racket
stimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputOncePetyareadaproblemaboutab
racket
sequence.Hegaveitmuchthoughtbutdidn'tfindasolution.Today
u013068502
·
2016-04-20 11:00
codeforces
【一天一道LeetCode】#20. Valid Parentheses
Givenastringcontainingjustthecharacters‘(‘,‘)’,‘{‘,‘}’,‘[’and‘]’,determineiftheinputstringisvalid.Theb
racket
smustcloseinthecorrectorder
terence1212
·
2016-04-17 22:00
LeetCode
LeetCode之20---Valid Parentheses
Givenastringcontainingjustthecharacters '(', ')', '{', '}', '[' and ']',determineiftheinputstringisvalid.Theb
racket
smustcloseinthecorrectorder
Jung_zhang
·
2016-04-16 22:00
LeetCode
算法
LeetCode之20---Valid Parentheses
Givenastringcontainingjustthecharacters '(', ')', '{', '}', '[' and ']',determineiftheinputstringisvalid.Theb
racket
smustcloseinthecorrectorder
Jung_zhang
·
2016-04-16 22:00
LeetCode
算法
LeetCode(49)-Valid Parentheses
Theb
racket
smustcloseinthecorrectorder,"()"and"()[]{}"areallvalidbut"(]"and"([)]"arenot.思路:题意:一个字符
u010321471
·
2016-04-12 12:00
LeetCode
算法
面试
valid
parenthese
LeetCode 20. Valid Parentheses
Givenastringcontainingjustthecharacters'(',')','{','}','['and']',determineiftheinputstringisvalid.Theb
racket
smustcloseinthecorrectorder
github_34333284
·
2016-04-10 10:00
LeetCode 20 Valid Parentheses
EasyGivenastringcontainingjustthecharacters'(',')','{','}','['and']',determineiftheinputstringisvalid.Theb
racket
smustcloseinthe
lizhaowei213
·
2016-04-09 23:00
leetcode——20——Valid Parentheses
Givenastringcontainingjustthecharacters'(',')','{','}','['and']',determineiftheinputstringisvalid.Theb
racket
smustcloseinthecorrectorder
happyxuma1991
·
2016-04-06 17:00
LeetCode
算法题
codeforces#308-E - Vanya and B
racket
s-枚举+表达式计算
http://codeforces.com/contest/552/problem/E题意:给一个不带括号的只有加法和乘法的表达式让你给它加一对括号,使得值最大乘法操作不超过15个。 表达式长度不超过5001思路:由于只有称乘号和加号,可以猜测括号的位置,最优的方法应该是,左括号在乘法右边,右括号在乘法左边因为如果不是这样的话,可以调整使得结果更大。因此只需要枚举所有乘号的位置,注意可能第一个位置
viphong
·
2016-04-06 17:00
leetcode020 Valid Parentheses
Givenastringcontainingjustthecharacters‘(‘,‘)’,‘{‘,‘}’,‘[’and‘]’,determineiftheinputstringisvalid.Theb
racket
smustcloseinthecorrectorder
jnuyanfa
·
2016-04-04 21:00
LeetCode
LeetCode-20.Valid Parentheses
Givenastringcontainingjustthecharacters '(', ')', '{', '}', '[' and ']',determineiftheinputstringisvalid.Theb
racket
smustcloseinthecorrectorder
zmq570235977
·
2016-04-04 14:00
算法
字符串
<< Web >> Sublime /emmet /css
常用插件:Emmet:快捷输入html的插件Sublimeprefixr:css自动补全Jsformat:js格式化Sublimelinter:错误提示高亮Sublimecodeintel:代码自动提示B
racket
highlighter
qq_15766257
·
2016-04-04 01:00
前端
js中英文对照
箭头函数(es6)4.constructor:构造函数5.prototype:原型6.thescopeofvariables:变量范围7.anonymousfunction:匿名函数8.loop:循环9.b
racket
notation
stone_yao
·
2016-03-30 14:14
Code Forces 149DColoring B
racket
s(区间DP)
ColoringB
racket
stimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputOncePetyareadaproblemaboutab
racket
sequence.Hegaveitmuchthoughtbutdidn'tfindasolution.Todayy
Dacc123
·
2016-03-29 08:00
dp
codeforces
leetcode 20. Valid Parentheses
Givenastringcontainingjustthecharacters '(', ')', '{', '}', '[' and ']',determineiftheinputstringisvalid.Theb
racket
smustcloseinthecorrectorder
u014568921
·
2016-03-27 10:00
LeetCode
leetcode: Valid Parentheses
Givenastringcontainingjustthecharacters '(', ')', '{', '}', '[' and ']',determineiftheinputstringisvalid.Theb
racket
smustcloseinthecorrectorder
frank-liu
·
2016-03-24 19:42
[Leetcode]020. Valid Parentheses
Givenastringcontainingjustthecharacters‘(‘,‘)’,‘{‘,‘}’,‘[’and‘]’,determineiftheinputstringisvalid.Theb
racket
smustcloseinthecorrectorder
·
2016-03-24 19:00
Leet Code OJ 20. Valid Parentheses [Difficulty: Easy]
题目:Givenastringcontainingjustthecharacters,determineiftheinputstringisvalid.Theb
racket
smustcloseinthecorrectorder
Lnho2015
·
2016-03-24 13:00
LeetCode
算法
栈
括号
Leet Code OJ 20. Valid Parentheses [Difficulty: Easy]
题目:Givenastringcontainingjustthecharacters,determineiftheinputstringisvalid.Theb
racket
smustcloseinthecorrectorder
Lnho2015
·
2016-03-24 13:00
LeetCode
算法
栈
括号
24.leetcode题目20: Valid Parentheses
Givenastringcontainingjustthecharacters '(', ')', '{', '}', '[' and ']',determineiftheinputstringisvalid.Theb
racket
smustcloseinthecorrectorder
hzj379805931
·
2016-03-23 22:00
WEB Editor - B
racket
s
B
racket
s推荐一款网页编辑器:Amodern,opensourcetexteditorthatunderstandswebdesign.B
racket
s10款常用插件B
racket
s是一个免费、开源且跨平台的
Lixh1986
·
2016-03-23 07:45
Web
editor
design
Brackets
Lisp入门
本教程以图文搭配的形式向您简要介绍
Racket
编程。这些例子很有趣,也很有启发作用,即使你不打算深入下去也值得一看。毕竟,一图胜千言,至少是五百句“helloworld”。
u014695532
·
2016-03-22 19:00
lisp
文本编辑工具: Atom & B
racket
s
阅读更多在公司内部软件使用许可中,如果可以放心使用某个软件,它需要符合两点:一、开源(opensource)开源可以使其代码公开,避免了其代码中隐藏后门或不可告人的代码。二、免费(free)免费保证了可以自由使用。下面介绍两款开源且免费的文本编辑软件:一、AtomAtom是Github专门为程序员推出的一个跨平台文本编辑器,已开源。功能齐全,可构建包管理器、智能自动完成(auto-completi
Lixh1986
·
2016-03-21 11:00
文本
编辑器
Atom
Brackets
文本编辑工具: Atom & B
racket
s
阅读更多在公司内部软件使用许可中,如果可以放心使用某个软件,它需要符合两点:一、开源(opensource)开源可以使其代码公开,避免了其代码中隐藏后门或不可告人的代码。二、免费(free)免费保证了可以自由使用。下面介绍两款开源且免费的文本编辑软件:一、AtomAtom是Github专门为程序员推出的一个跨平台文本编辑器,已开源。功能齐全,可构建包管理器、智能自动完成(auto-completi
Lixh1986
·
2016-03-21 11:00
文本
编辑器
Atom
Brackets
20. Valid Parentheses
Givenastringcontainingjustthecharacters '(', ')', '{', '}', '[' and ']',determineiftheinputstringisvalid.Theb
racket
smustcloseinthecorrectorder
a342500329a
·
2016-03-18 19:00
【LeetCode】20. Valid Parentheses
Givenastringcontainingjustthecharacters '(', ')', '{', '}', '[' and ']',determineiftheinputstringisvalid.Theb
racket
smustcloseinthecorrectorder
qq_27991659
·
2016-03-17 09:00
HOJ 1936&POJ 2955 B
racket
s(区间DP)
B
racket
sMyTags(Edit)Source:StanfordACMProgrammingContest2004Timelimit:1secMemorylimit:32MSubmitted:188
Dacc123
·
2016-03-16 17:00
hoj-区间DP
pku1141 B
racket
s Sequence 区间DP
好像是很经典的区间DP但是其实想一下也不难记忆化搜索从i到j区间内的最小冲突数然后根据mark的进行更新时间复杂度明显的n3但是其实我还有一种想法不知可不可行首先把整个序列拆分成为两个要么是全是小括号的要么全部都是中括号的然后把每个序列中的左括号标记为1,右括号标记为-1然后计算前缀和,那么每个单独的合法序列为最终的值为0且中途不出现负数然后我们添加括号使其合法,标记这些后来添加的括号。再对这两个
BPM136
·
2016-03-16 12:00
dp
区间DP
Editplus最佳配色方案
zhuang\Desktop\HUAWEICodeCraft2016初赛赛题包\SDK-gcc-1.0\future_net Timeout=0 Folding=1 LineSpace=0 Closeb
racket
sinat_29912455
·
2016-03-14 22:00
Editplus
Valid Parentheses
Givenastringcontainingjustthecharacters '(', ')', '{', '}', '[' and ']',determineiftheinputstringisvalid.Theb
racket
smustcloseinthecorrectorder
Andrewseu
·
2016-03-14 21:00
LeetCode
Valid Parentheses
Givenastringcontainingjustthecharacters '(', ')', '{', '}', '[' and ']',determineiftheinputstringisvalid.Theb
racket
smustcloseinthecorrectorder
Chenyt01
·
2016-03-12 18:00
随机生成四则运算(2)
include #include #include #defineN30 usingnamespacestd; intmain() { intnum1,num2,sym,tscore,asmd,b
racket
s
信仰2016
·
2016-03-12 09:00
Least Cost B
racket
Sequence 优先队列
D.LeastCostB
racket
Sequence题目连接:http://www.codeforces.com/contest/3/problem/DDescriptionThisisyetanotherproblemonregularb
racket
sequences.Ab
racket
sequenceiscalledregular
qscqesze
·
2016-03-11 17:00
Famil Door and B
racket
s dp
别人口中的“水题”虽然我觉得是有点难度,挺死脑细胞的。好吧,不废话了,讲题意:给出一个长度为m的字符串s,(由左右括号组成),现要得到一个长度为n的字符串,所以要在s的前面和后面分别加上字符串p,q。->p+s+q!有两个要求:1.左括号数目=右括号数目。2.字符串任何一个前缀都必须满足左括号数目>=右一开始没懂2是什么意思,所以真的很难想求解的方法。实际上前缀的意思就是这个字符串的前多少个!在这
qq_24664053
·
2016-03-11 17:00
eclipse 常用快捷键 及 windows快捷键
Eclipse常用快捷键打开Eclipse快捷键的快捷键Ctrl+Shift+L快捷键描述原英文描述Ctrl+Shift+P定位到光标所在处的括号的另一半括号的位置GotoMatchingB
racket
Alt
此去经年ぢ
·
2016-03-11 16:00
HDOJ 5184 B
racket
s 卡特兰数扩展
a+b,min(a,b))-C(a+b,min(a,b)-1) /// 折纸法证明卡特兰数: http://blog.sina.com.cn/s/blog_6917f47301010cno.htmlB
racket
sTimeLimit
mengfanrong
·
2016-03-10 15:00
BootStrap入门_创建第一个例子
一、选择合适的IDE 一般前端开发选用的都是WebStorm、B
racket
s等,因为本人对VS比较熟悉,索性就拿VS进行练习了,而且VS练习有些好处,就是通过nuget方式获取BootStrap
大橙子小橘子
·
2016-03-09 19:00
[LeetCode20]Valid Parentheses
Givenastringcontainingjustthecharacters '(', ')', '{', '}', '[' and ']',determineiftheinputstringisvalid.Theb
racket
smustcloseinthecorrectorder
zhangbaochong
·
2016-03-07 13:00
上一页
26
27
28
29
30
31
32
33
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他