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-07-05 09:46:08
阅读次数:
95
zencoding在vim上的插件已经改名为Emmet.vim1. 安装,推荐使用vundle插件管理器安装,在~/.vimrc中,添加:Bundle ‘Emmet.vim’,输入命令vim +BundleInstall +qall 即可完成安装; 个人vim配置:https://www.githu...
分类:
系统相关 时间:
2015-07-04 13:55:06
阅读次数:
212
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 val...
分类:
其他好文 时间:
2015-06-30 23:40:25
阅读次数:
285
1、引子
以前介绍过 Sublime text 3 系列的文章,着重介绍了 Sublime text 3 如何下载、安装、插件、配置等内容。Sublime text 3的轻量和富扩展,为前端开发带来了很多的便捷,加快了代码的书写速度,尤其是配上 emmet,那书写速度堪称光速。
现在,要隆重介绍的前端开发工具webstorm,为什么说它是前端开发工具,而不是前端开发编辑器呢?它具备的功...
分类:
Web程序 时间:
2015-06-30 23:39:46
阅读次数:
183
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:
其他好文 时间:
2015-06-30 12:17:09
阅读次数:
82
【题目链接】:click here~~
【题目大意】给定一个逻辑运算符号a->b:当前仅当a为1b为0值为0,其余为1,构造括号,改变运算优先级使得最后结果为0
【解题思路】:
todo~~
/*
思路:
1.如果最后一位是1,无论如何结果不会为0.puts("NO");
2.那么有解的情况下最后一位必为0
2.1.进一步发现,其实倒数第二位必为1,只有1前面的结果和该位1结合...
分类:
其他好文 时间:
2015-06-27 16:41:04
阅读次数:
127
Eclipse离线安装Emmet插件
最近发现了一个写前端代码非常好的一个东西,一个叫做Emmet的工具,这个工具使用仿CSS选择器的语法来生成代码,大大提高了HTML/CSS代码编写的速度,前身就是大名鼎鼎的Zen
coding。先来看张图:
是不是很带劲呢,如果能达到图中的效果,对我们开发前端的代码的速度将会有大幅度的提升。这里只分享如何在Eclipse中离线安装emmet...
分类:
系统相关 时间:
2015-06-23 11:54:54
阅读次数:
243
Emmet常用语法1、输入!和html:5(不能大写),按下TAB 键,快速生成一个 HTML5 的标准文档初始结构。 html:xt 生成 HTML4 过渡型 html:4s 生成 HTML4 严格型2、生成带有 id 、class 的 HTML 标签 (1)Emmet 的语法有点类似...
分类:
其他好文 时间:
2015-06-22 22:03:20
阅读次数:
155
This problem can be solved elegantly using dynamic programming.We maintain two arrays:cnt[i][j] --- number of parentheses needed to add within s[i..j]...
分类:
其他好文 时间:
2015-06-22 19:12:15
阅读次数:
202
题目链接:http://poj.org/problem?id=2955题意:求回文子串的最大长度。解法:枚举区间长度,更新答案。代码:#include
#include
#include
#include
#include
#include
#include
#...
分类:
其他好文 时间:
2015-06-17 21:36:46
阅读次数:
99